{{ message }}
Efficient Trace Payload Protocol (v1 protocol)#10801
Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 89 commits intoApr 23, 2026
Merged
Conversation
# Conflicts: # dd-trace-core/src/main/java/datadog/trace/core/DDSpanContext.java
mcculls
reviewed
Apr 22, 2026
mcculls
reviewed
Apr 22, 2026
mcculls
reviewed
Apr 22, 2026
mcculls
reviewed
Apr 22, 2026
mcculls
reviewed
Apr 22, 2026
mcculls
reviewed
Apr 22, 2026
mcculls
approved these changes
Apr 22, 2026
mcculls
left a comment
Contributor
There was a problem hiding this comment.
LGTM, thanks for improving the protocol selection - and the test coverage
Contributor
Author
|
/merge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What Does This Do
v1.0(v1.0/tracesendpoint) in the Java tracer.TraceMapperV1, a new serializer that encodes traces in thev1 msgpackformat with a flat attribute model, string table deduplication, and typed attribute values.ProtocolVersionenum to cleanly representv0.4,v0.5, andv1.0protocols including their fallback endpoint chains.DDAgentFeaturesDiscoveryto probe endpoints based on the configured protocol version.Motivation
Protocol v1 is a more efficient wire format: it deduplicates repeated strings via a string table, uses typed attribute values (string/bool/float/int/bytes/array). This reduces payload size and provides a cleaner foundation for future span model evolution. The implementation falls back gracefully to
v0.4when the agent does not advertisev1support.Additional Notes
Protocol v1 spec
System test passed both on GitHub and GitLab.