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

Prefer w3c traceparent header over legacy elastic-apm-traceparent #963

Merged
merged 4 commits into from May 28, 2021

Conversation

axw
Copy link
Member

@axw axw commented May 28, 2021

Switch the order of precedence, preferring the W3C 'traceparent' header over 'elastic-apm-traceparent'.

See elastic/apm#442

Switch the order of precedence, preferring the W3C
'traceparent' header over 'elastic-apm-traceparent'.
@elastic-apm-tech elastic-apm-tech added this to In Progress in APM-Agents (OLD) May 28, 2021
@apmmachine
Copy link
Collaborator

apmmachine commented May 28, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #963 updated

  • Start Time: 2021-05-28T07:52:03.454+0000

  • Duration: 27 min 1 sec

  • Commit: 84dd46f

Test stats 🧪

Test Results
Failed 0
Passed 10670
Skipped 266
Total 10936

Trends 🧪

Image of Build Times

Image of Tests

// the value if not set already.
traceparentHeaderValue = val
case apmhttp.ElasticTraceparentHeader:
// The W3C header value always trumps the ElastiC one,
Copy link
Contributor

Choose a reason for hiding this comment

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

Liking the stylized ElastiC

Copy link
Member Author

Choose a reason for hiding this comment

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

heh, thanks :)

module/apmot/tracer.go Outdated Show resolved Hide resolved
@axw axw merged commit 5dea8b7 into elastic:master May 28, 2021
APM-Agents (OLD) automation moved this from In Progress to Done May 28, 2021
@axw axw deleted the w3c-header-precedence branch May 28, 2021 08:34
@axw axw mentioned this pull request Jun 2, 2021
stuartnelson3 pushed a commit that referenced this pull request Jul 30, 2021
* Give precedence to W3C 'traceparent' header

Switch the order of precedence, preferring the W3C
'traceparent' header over 'elastic-apm-traceparent'.

* Update changelog

* Update module/apmot/tracer.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants