Skip to content

Update tracestate example for header format#585

Open
JoakimBrannstrom wants to merge 1 commit into
w3c:mainfrom
JoakimBrannstrom:patch-1
Open

Update tracestate example for header format#585
JoakimBrannstrom wants to merge 1 commit into
w3c:mainfrom
JoakimBrannstrom:patch-1

Conversation

@JoakimBrannstrom

@JoakimBrannstrom JoakimBrannstrom commented Jul 6, 2026

Copy link
Copy Markdown

Clarified example of tracestate header formatting to ensure only the most recent position is included.


Preview | Diff

Clarified example of tracestate header formatting to ensure only the most recent position is included.
Tracing tools are not supposed to add the same header multiple times. For example, if a vendor name is Congo and a trace started in their system and then went through a system named Rojo and later returned to Congo, the `tracestate` value would not be:

`congo=congosFirstPosition,rojo=rojosFirstPosition,congo=congosSecondPosition`
`congo=congosSecondPosition,rojo=rojosFirstPosition,congo=congosFirstPosition`

@zacharycmontoya zacharycmontoya Jul 6, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I don't see a reason to change this tracestate value, since the one several lines later in the doc is the correct one. This line is supposed to show a wrong example, so the previous value works just as well as the newly proposed value

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I know that this example shows an invalid tracestate, but it was confusing when I read it, since the order of creation should be from right to left.
I believe it would show the problem in a better way by making the suggested change.

As a side-note, accepting PR's (if they are not flat out wrong) builds more engagement and makes the community stronger :)

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