Description
As part of the W3C Distributed Tracing working group, on 18th April 2023 we published the Level 2 (aka version 2) of the W3C Trace Context spec in "Candidate Recommendation" (CR) status: [https://www.w3.org/TR/trace-context-2/]
The main change is that this includes a new flag called the "random trace id" flag in the traceflags in the traceparent header, which when set, conveys that at least the right-most 7 bytes of the trace ID have been generated in a random (or pseudo-random) manner. This can be helpful for samplers / sharding logic etc. as with this they can get stronger guarantees that traceID has been generated in a random/pseudo-random manner.
Wanted to update you on this spec for your evaluation and to consider adoption as part of .NET 9. Assuming the traceID is already being generated in a pseudo-random manner, this would involve setting the corresponding trace flag to reflect it.
CC: @tarekgh