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
feat: stamp W3C trace context on MongoDB metadata writes
Add a traceContext field to ObjectMD carrying the currently-active
OTEL trace context (W3C traceparent/tracestate). Inject it
automatically at the three metadata write chokepoints where originOp
is set today: internalPutObject, repair, and internalDeleteObject.
The value ends up in the MongoDB oplog; downstream consumers
(backbeat, sorbet) can extract it to continue the trace across the
async boundary, closing the loop on end-to-end tracing for flows
that cross the oplog.
When OTEL is not active on the caller (no SDK, or request outside
a traced context), captureCurrentTraceContext returns undefined,
setTraceContext no-ops, and the field stays absent — zero cost.
Only adds @opentelemetry/api as a runtime dependency (the API-only
surface package, becomes a no-op when no SDK is registered).
Issue: ARSN-572
0 commit comments