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 active? and trace_context to properly handle inactive traces
- Fix Traces.active? to return false when there is no active trace
(previously always returned true even for INVALID spans)
- Fix Traces.trace_context to return nil when there is no active trace
(previously returned invalid Context objects with zero trace_ids)
- Both methods now use OpenTelemetry::Trace::Span::INVALID for proper
detection of inactive traces instead of manual trace_id checking
- Add test case to ensure trace_context returns nil in clean Fiber context
- Resolves issues with Async incorrectly detecting active traces
0 commit comments