Skip to content

test(otel): preserve tracestate member order - #7579

Merged
MilanGarnier merged 1 commit into
mainfrom
milan.garnier/ot.th-no-tracestate-reordering
Aug 26, 2026
Merged

test(otel): preserve tracestate member order#7579
MilanGarnier merged 1 commit into
mainfrom
milan.garnier/ot.th-no-tracestate-reordering

Conversation

@MilanGarnier

@MilanGarnier MilanGarnier commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Motivation

The W3C Trace Context mutation rules require unmodified tracestate members to retain their order.
Thanks to @zacharycmontoya for identifing this coverage gap here.

Changes

Add an end-to-end regression using dd=s:1,foo=bar,ot=rv:6e6d1a75832a2f,something=else and assert the raw downstream suffix remains foo=bar,ot=rv:6e6d1a75832a2f,something=else.

Existing tests verify parsed dd, ot, and vendor values. This raw comparison
is complementary because parsed key/value checks cannot detect reordering.

  • marks this as a bug for dd-trace-rs / dd-trace-rb implementation

@github-actions

Copy link
Copy Markdown
Contributor

CODEOWNERS have been resolved as:

manifests/cpp.yml                                                       @DataDog/system-tests-reviewers
manifests/dotnet.yml                                                    @DataDog/system-tests-reviewers
manifests/golang.yml                                                    @DataDog/system-tests-reviewers
manifests/java.yml                                                      @DataDog/system-tests-reviewers
manifests/nodejs.yml                                                    @DataDog/system-tests-reviewers
manifests/php.yml                                                       @DataDog/system-tests-reviewers
manifests/python.yml                                                    @DataDog/system-tests-reviewers
manifests/ruby.yml                                                      @DataDog/system-tests-reviewers
manifests/rust.yml                                                      @DataDog/system-tests-reviewers
tests/test_otel_tracestate_sampling.py                                  @DataDog/system-tests-core

@MilanGarnier
MilanGarnier marked this pull request as ready for review August 25, 2026 12:16
@MilanGarnier
MilanGarnier requested review from a team as code owners August 25, 2026 12:16

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dc0786e003

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread tests/test_otel_tracestate_sampling.py
Comment thread manifests/nodejs.yml
@MilanGarnier
MilanGarnier enabled auto-merge (squash) August 26, 2026 12:25
@MilanGarnier
MilanGarnier merged commit e6abfc0 into main Aug 26, 2026
425 checks passed
@MilanGarnier
MilanGarnier deleted the milan.garnier/ot.th-no-tracestate-reordering branch August 26, 2026 12:26
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.

2 participants