You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The compiled request path creates logging infrastructure on every request. setupContextVars mutates shared integration configuration with route/project IDs, OpenTelemetryLogs creates a provider/exporter and force-flushes each log, and Loki creates a transport per request. Providers, exporters, timers, and sockets are never shut down. Concurrent requests can race and mislabel logs.
Scope
Cache logger, OpenTelemetry provider/exporter, and Loki transport per integration in the execution thread.
Treat integration configuration as immutable; attach project and route identifiers as per-log attributes.
Batch exports; flush and close all resources during worker shutdown.
On integration configuration change, atomically replace the cached logging resources and close the retired provider after it drains.
Problem
The compiled request path creates logging infrastructure on every request. setupContextVars mutates shared integration configuration with route/project IDs, OpenTelemetryLogs creates a provider/exporter and force-flushes each log, and Loki creates a transport per request. Providers, exporters, timers, and sockets are never shut down. Concurrent requests can race and mislabel logs.
Scope
Acceptance
Split from #192. Part of #194.