Skip to content

Conversation

paullegranddc
Copy link
Collaborator

Motivation

The otel tracestate API is obviously not optimal.
Currently we do a roundtrip of otel tracestate -> String -> dd tracestate. This PR removes one step on injection, and keeps the tracestate as a string, which we copy into the injected tracestate

# Motivation

The otel tracestate API is obviously not optimal.
Currently we do a roundtrip of otel tracestate -> String -> dd tracestate.
This PR removes one step on injection, and keeps the tracestate as a string, which we copy into the injected tracestate
@paullegranddc paullegranddc requested a review from a team as a code owner October 2, 2025 15:16
Copy link
Collaborator

@iunanua iunanua left a comment

Choose a reason for hiding this comment

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

Thank you! xD

This PR aimed to remove the roundtrip and I hoped it would be merged and included in the already released 0.31.0 but it couldn't be :__

@paullegranddc
Copy link
Collaborator Author

paullegranddc commented Oct 2, 2025

included in the already released 0.31.0 but it couldn't be

Yes 😢, in the meantime this is slightly better but ideally we should just pass a ref to the the otel tracestate

@paullegranddc paullegranddc merged commit be71b4d into main Oct 2, 2025
21 checks passed
@paullegranddc paullegranddc deleted the paullgdc/inject/dont_parse_tracestate_twice branch October 2, 2025 15:43
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