Skip to content

Commit

Permalink
Enable w3c tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
MariuszKogut committed Mar 14, 2020
1 parent b68cd68 commit 6a40238
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void Delete(long id)

private void Track(string eventName, long id)
{
_telemetryClient.TrackEvent(eventName, new Dictionary<string, string> {{"customer-id", id.ToString()}});
_telemetryClient.TrackEvent(eventName, new Dictionary<string, string> { { "customer-id", id.ToString() } });
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public static void AddCustomizedApplicationInsightsTelemetry(this IServiceCollec
services.AddApplicationInsightsTelemetry(o =>
{
o.InstrumentationKey = instrumentationKey;
o.RequestCollectionOptions.EnableW3CDistributedTracing = false;
});

services.AddSingleton<ITelemetryInitializer>(new RoleNameInitializer(roleName, roleNameInstance));
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/shared/services/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const setupApplicationInsights = () => {
disableFetchTracking: false,
enableDebugExceptions: true,
enableCorsCorrelation: true,
distributedTracingMode: DistributedTracingModes.AI
distributedTracingMode: DistributedTracingModes.W3C
}
});
applicationInsights.loadAppInsights();
Expand Down

0 comments on commit 6a40238

Please sign in to comment.