Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure the _dd.p.tid tag has fixed size #3729

Merged
merged 2 commits into from
Jun 26, 2024
Merged

Ensure the _dd.p.tid tag has fixed size #3729

merged 2 commits into from
Jun 26, 2024

Conversation

marcotc
Copy link
Member

@marcotc marcotc commented Jun 21, 2024

This PR ensures that the ruby tracer is compliant when populating the span tag _dd.p.tid, making sure that when this tag is serialized as a hexagonal String, it is padded with zeros, always having 16 characters.

This tag contains the high-order bits (most significant bits) of a 128 bit trace ID, and having it as a fixed sized String is a protocol specification across all tracer languages.

Signed-off-by: Marco Costa <marco.costa@datadoghq.com>
@marcotc marcotc self-assigned this Jun 21, 2024
@marcotc marcotc requested review from a team as code owners June 21, 2024 20:24
@marcotc marcotc enabled auto-merge June 26, 2024 18:53
@marcotc marcotc merged commit 7cd7c4c into master Jun 26, 2024
163 of 165 checks passed
@marcotc marcotc deleted the fix-tid branch June 26, 2024 19:12
@github-actions github-actions bot added this to the 2.2.0 milestone Jun 26, 2024
@TonyCTHsu TonyCTHsu mentioned this pull request Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants