Application Insights
CorrelatorSharp.ApplicationInsights is an add-on for Microsoft Application Insights that enables support for CorrelatorSharp.
Get it
Where | What |
---|---|
NuGet | CorrelatorSharp.ApplicationInsights |
Latest Build (master) |
Using it
TelemetryConfiguration.Active.TelemetryInitializers.Add(
new CorrelatorSharp.ApplicationInsights.OperationIdTelementryInitializer());
This will initialize the following properties in the Application Insights telemetry:
- Operation Id (built-in property)
- Operation Name (built-in property)
ParentOperationId
IMPORTANT NOTE: You need to remove the built-in Application Insights operation id telemetry initializer - otherwise they will overwrite each others properties.