microsoft / ApplicationInsights-dotnet

ApplicationInsights-dotnet
MIT License
565 stars 287 forks source link

NLog Target support ConnectionString with isolated TelemetryClient #2897

Open snakefoot opened 3 months ago

snakefoot commented 3 months ago

Fix Issue #2714 - Add support for connection string to Microsoft.ApplicationInsights.NLogTarget

Changes

Checklist

For significant contributions please make sure you have completed the following items:

The PR will trigger build, unit tests, and functional tests automatically. Please follow these instructions to build and test locally.

Notes for authors:

snakefoot commented 3 months ago

@cijothomas + @rajkumar-rangaraj + @TimothyMothra Fork of #2858 where I have changed to use isolated TelemetryConfiguration so not modifying the global config, when using ConnectionString.

I don't mind also fixing log4net-appender if you like. Thus moving away from using InstrumentationKey before it is fully deprecated.

Please review and merge.

SharePointX commented 1 month ago

With all due respect, we are eagerly awaiting this change as the deadline for discontinuing instrumentation keys is approaching.