Skip to content

DRIVERS-3705 Document server behavior for propagated trace context - #2000

Merged
nhachicha merged 1 commit into
mongodb:masterfrom
nhachicha:otel-server-trace-continuation
Oct 27, 2026
Merged

nhachicha merged 1 commit into
mongodb:masterfrom
nhachicha:otel-server-trace-continuation

Conversation

@nhachicha

@nhachicha nhachicha commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This documentation-only change explains how servers may handle trace context sent by drivers. Servers may ignore it if tracing is disabled. If tracing is enabled, they may continue sampled traces, but can still drop them due to rate limits. The trace context does not appear in server diagnostics such as logs or the profiler. Drivers must continue sending it on every eligible command, as already required.

Source

Server behavior confirmed by the server OpenTelemetry owner in this SERVER-137033 comment (2026-10-22).

Related

This is documentation-only and follows up on:

@nhachicha nhachicha self-assigned this Oct 26, 2026
@nhachicha
nhachicha requested a balanced review from Copilot October 26, 2026 17:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The server behavior assertions require human confirmation against the linked Jira source, which was not independently verified.

1 open issue
What changed in this PR

Adds non-normative server-side context to the OpenTelemetry specification, complementing existing driver trace propagation requirements without changing them.

Changes:

  • Describes when servers ignore, continue, or rate-limit propagated traces.
  • Clarifies that propagated trace context is not exposed in server diagnostics.
  • Restates existing driver propagation requirements and adds a changelog entry.
File Description
source/​open-telemetry/​open-telemetry.md Adds “Expected Server Behavior” guidance and records the documentation update.

Review effort: Balanced

Comment thread source/open-telemetry/open-telemetry.md
@nhachicha nhachicha changed the title Document expected server behavior for propagated trace context in the OpenTelemetry spec DRIVERS-3705 Document server behavior for propagated trace context Oct 26, 2026
@nhachicha
nhachicha marked this pull request as ready for review October 26, 2026 18:55
@nhachicha
nhachicha requested a review from a team as a code owner October 26, 2026 18:55
@nhachicha
nhachicha merged commit 418f6c7 into mongodb:master Oct 27, 2026
6 checks passed
@nhachicha
nhachicha deleted the otel-server-trace-continuation branch October 27, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants