TelemetryConfiguration.Active#206
Conversation
According to Microsoft in this PR (microsoft/ApplicationInsights-dotnet#1148) they recommend using Telemetry.CreateDefault().
|
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 🤔 |
There was a problem hiding this comment.
Please add (follow here):
[Obsolete("We do not recommend using TelemetryConfiguration.Active on .NET Core. See https://github.com/microsoft/ApplicationInsights-dotnet/issues/1152 for more details")]
With #NETSTANDARD, like here: https://github.com/microsoft/ApplicationInsights-dotnet/blob/c9d420224a06d27ee74fba4b41cad7460bd63bd0/BASE/src/Microsoft.ApplicationInsights/TelemetryClient.cs#L40
| // TelemetryConfiguration.Active is obsolete | ||
| // https://github.com/microsoft/ApplicationInsights-dotnet/pull/1148 |
There was a problem hiding this comment.
| // TelemetryConfiguration.Active is obsolete | |
| // https://github.com/microsoft/ApplicationInsights-dotnet/pull/1148 |
No need to add this for readme
| // TelemetryConfiguration.Active is obsolete | ||
| // https://github.com/microsoft/ApplicationInsights-dotnet/pull/1148 |
There was a problem hiding this comment.
| // TelemetryConfiguration.Active is obsolete | |
| // https://github.com/microsoft/ApplicationInsights-dotnet/pull/1148 |
No need to add this for readme
@nblumhardt: I'm still using this style of configuring logger and output template. |
According to Microsoft in this PR (microsoft/ApplicationInsights-dotnet#1148) they recommend using Telemetry.CreateDefault().