ApplicationInsights-dotnet icon indicating copy to clipboard operation
ApplicationInsights-dotnet copied to clipboard

Log4Net Appender cannot connect using ConnectionString

Open dirthsj opened this issue 3 years ago • 3 comments

Is your feature request related to a problem? I have an older .NET Framework application I am adding application insights to. However, when creating an ApplicationInsightsAppender instance I am only able to specify InstrumentationKey.

Describe the solution you'd like. I should be able to provide a ConnectionString instead of an InstrumentationKey

Describe alternatives you've considered. Using InstrumentationKey ingest until this is fixed.

Additional context. N/A

dirthsj avatar Nov 08 '22 18:11 dirthsj

This issue is stale because it has been open 300 days with no activity. Remove stale label or this will be closed in 7 days. Commenting will instruct the bot to automatically remove the label.

github-actions[bot] avatar Sep 05 '23 00:09 github-actions[bot]

This issue is still present in the current release (2.21.0)

dirthsj avatar Sep 05 '23 13:09 dirthsj

Microsoft is moving away from the instrumentation keys: https://learn.microsoft.com/en-us/azure/azure-monitor/app/migrate-from-instrumentation-keys-to-connection-strings

Besides that, you want to be able to use the complete TelemetryConfiguration object, if you need to use Managed Identities for instance.

SierraNL avatar Oct 25 '23 12:10 SierraNL