diff --git a/app/client/src/instrumentation/index.ts b/app/client/src/instrumentation/index.ts index 0dbf4ae4abb4..2eaacdd8701a 100644 --- a/app/client/src/instrumentation/index.ts +++ b/app/client/src/instrumentation/index.ts @@ -51,6 +51,13 @@ if (isTracingEnabled()) { trackResources: true, trackWebVitalsAttribution: true, internalLoggerLevel, + sessionTracking: { + generateSessionId: () => { + // Disabling session tracing will not send any instrumentation data to the grafana backend + // Instead, hardcoding the session id to a constant value to indirecly disable session tracing + return "SESSION_ID"; + }, + }, }); const tracerProvider = new WebTracerProvider({