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
fix(tracing): flush root spans before shutdown cleanup to prevent orphan traces (#112)
Container restart (SIGTERM → timeout → SIGKILL) killed the process before
root spans were ended. Child spans already flushed to OTLP survived in Tempo
without their parent root span, creating orphan `?` traces.
Fix:
- Add flushRootSpans() to CdpSession — ends all tab + session root spans immediately
- Call flushAllRootSpans() as Step 0 in shutdown() BEFORE slow replay/browser cleanup
- Increase shutdown timeout from 10s to 25s (aligned with replay flush timeouts)
- SpanProto.end() pushes to OTLP exporter buffer — spans survive even if killed mid-cleanup
0 commit comments