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: Change default tracing headers #501

Merged
merged 2 commits into from
Oct 26, 2023

Conversation

fuzzybinary
Copy link
Member

What and why?

Change the default tracing headers to use both Datadog's format as well as the W3C tracecontext header types.

refs: RUM-1557

Review checklist

  • This pull request has appropriate unit and / or integration tests
  • This pull request references a Github or JIRA issue

CI Configuration (optional)

  • Run unit tests
  • Run integration tests

Change the default tracing headers to use both Datadog's format as well as the W3C tracecontext header types.

refs: RUM-1557
@fuzzybinary fuzzybinary requested a review from a team as a code owner October 24, 2023 20:09
0xnm
0xnm previously approved these changes Oct 25, 2023
Copy link

@ganeshnj ganeshnj left a comment

Choose a reason for hiding this comment

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

Looks good, a quick test request.

@@ -247,7 +247,11 @@ void main() {

expect(datadogSdk.firstPartyHosts.length, 2);
expect(datadogSdk.firstPartyHosts[0].hostName, 'example.com');
expect(datadogSdk.firstPartyHosts[0].headerTypes,
{TracingHeaderType.datadog, TracingHeaderType.tracecontext});

Choose a reason for hiding this comment

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

can you also assert the data in both headers (datadog and tracecontext) is same?

if this is covered somewhere else, I'm fine with that also.

Copy link
Member Author

Choose a reason for hiding this comment

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

👍 I actually thought I had it in the actual tracing library, but it appears not. I'll add it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added for the main library. Ready for re-review.

@fuzzybinary fuzzybinary force-pushed the jward/RUM-1557-default-tracecontext branch 2 times, most recently from 056daf0 to dc2feb7 Compare October 25, 2023 14:30
@fuzzybinary fuzzybinary requested review from ganeshnj and 0xnm October 25, 2023 18:13
@fuzzybinary fuzzybinary merged commit 02c01b9 into develop Oct 26, 2023
@fuzzybinary fuzzybinary deleted the jward/RUM-1557-default-tracecontext branch October 26, 2023 13:42
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.

4 participants