diff --git a/backend/HS.CustomerApp.CustomerHost/Controllers/CustomerController.cs b/backend/HS.CustomerApp.CustomerHost/Controllers/CustomerController.cs index 71f279b..210e7c6 100644 --- a/backend/HS.CustomerApp.CustomerHost/Controllers/CustomerController.cs +++ b/backend/HS.CustomerApp.CustomerHost/Controllers/CustomerController.cs @@ -58,7 +58,7 @@ public void Delete(long id) private void Track(string eventName, long id) { - _telemetryClient.TrackEvent(eventName, new Dictionary {{"customer-id", id.ToString()}}); + _telemetryClient.TrackEvent(eventName, new Dictionary { { "customer-id", id.ToString() } }); } } } \ No newline at end of file diff --git a/backend/HS.CustomerApp.HostConfiguration/ApplicationInsightsExtensions.cs b/backend/HS.CustomerApp.HostConfiguration/ApplicationInsightsExtensions.cs index 1ab6a40..103c75e 100644 --- a/backend/HS.CustomerApp.HostConfiguration/ApplicationInsightsExtensions.cs +++ b/backend/HS.CustomerApp.HostConfiguration/ApplicationInsightsExtensions.cs @@ -19,7 +19,6 @@ public static void AddCustomizedApplicationInsightsTelemetry(this IServiceCollec services.AddApplicationInsightsTelemetry(o => { o.InstrumentationKey = instrumentationKey; - o.RequestCollectionOptions.EnableW3CDistributedTracing = false; }); services.AddSingleton(new RoleNameInitializer(roleName, roleNameInstance)); diff --git a/frontend/src/shared/services/analytics.ts b/frontend/src/shared/services/analytics.ts index 95abd44..725f085 100644 --- a/frontend/src/shared/services/analytics.ts +++ b/frontend/src/shared/services/analytics.ts @@ -16,7 +16,7 @@ const setupApplicationInsights = () => { disableFetchTracking: false, enableDebugExceptions: true, enableCorsCorrelation: true, - distributedTracingMode: DistributedTracingModes.AI + distributedTracingMode: DistributedTracingModes.W3C } }); applicationInsights.loadAppInsights();