serilog-contrib / serilog-sinks-applicationinsights

A Serilog sink that writes events to Microsoft Azure Application Insights
Apache License 2.0
220 stars 71 forks source link

TelemetryConfiguration.Active #206

Open idrivediesel2006 opened 2 years ago

idrivediesel2006 commented 2 years ago

According to Microsoft in this PR (https://github.com/microsoft/ApplicationInsights-dotnet/pull/1148) they recommend using Telemetry.CreateDefault().

nblumhardt commented 2 years ago

Thanks for the heads-up. I think we should probably remove this example entirely - the only really useful way to configure this sink currently is with a connection string or via injection of the telemetry client through DI, IIRC 🤔

Saibamen commented 7 months ago

I think we should probably remove this example entirely

@nblumhardt: I'm still using this style of configuring logger and output template.