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

feat: extract/inject datadog tracestate field p #115

Merged
merged 5 commits into from May 15, 2024

Conversation

dmehala
Copy link
Collaborator

@dmehala dmehala commented Apr 29, 2024

Description

Add support for W3C datadog tracestate field p.

@dmehala dmehala changed the title feat: extract/inject datadog specific tracestate feat: extract/inject datadog tracestate field Apr 29, 2024
Add support for W3C datadog tracestate field `p`.
@pr-commenter
Copy link

pr-commenter bot commented Apr 29, 2024

Benchmarks

Benchmark execution time: 2024-05-15 13:46:04

Comparing candidate commit a905e1f in PR branch dmehala/w3c-p-tracestate with baseline commit 3a8e1e9 in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics.

@dmehala dmehala marked this pull request as ready for review April 29, 2024 13:08
@dmehala dmehala changed the title feat: extract/inject datadog tracestate field feat: extract/inject datadog tracestate field p Apr 29, 2024
@dmehala dmehala requested review from a team and Anilm3 and removed request for a team May 7, 2024 13:58
@dmehala dmehala requested a review from a team as a code owner May 8, 2024 10:57
Copy link

@pablomartinezbernardo pablomartinezbernardo left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -300,6 +308,7 @@ Expected<ExtractedData> extract_w3c(
return result;
}

result.datadog_w3c_parent_id = "0000000000000000";

Choose a reason for hiding this comment

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

Curious to know: Is there a reason to use 0s id instead of an empty field somehow? Is the all 0s value a special value somewhere else?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's from the RFC. I think it's an optimization for the backend.

test/test_span.cpp Outdated Show resolved Hide resolved
@dmehala dmehala merged commit 9647240 into main May 15, 2024
19 checks passed
@dmehala dmehala deleted the dmehala/w3c-p-tracestate branch May 15, 2024 13:49
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.

None yet

2 participants