-
Notifications
You must be signed in to change notification settings - Fork 43
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
Conversation
Change the default tracing headers to use both Datadog's format as well as the W3C tracecontext header types. refs: RUM-1557
There was a problem hiding this 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}); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
056daf0
to
dc2feb7
Compare
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
CI Configuration (optional)