-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add support for writing B3 single header #166
Add support for writing B3 single header #166
Conversation
expect(request_headers['X-B3-SpanId']).to match(HEX_REGEX) | ||
expect(request_headers['X-B3-Sampled']).to eq('true') | ||
expect(request_headers['X-B3-Flags']).to eq('1') | ||
expect(request_headers['B3']).to match(/\A0000000000000001-\h{16}-d-0000000000000003\z/) |
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.
please downcase this by default.
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.
updated in 00f824b
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. only note is to downcase 'b3' by default as it is specified to be encoded downcase.
can you squash the commits in your fork so the history doesn't feature those extra commits related to syncing with upstream? |
Rebased on the top of |
* Omit ParentSpanId header for root spans. | ||
|
||
# 0.40.1 | ||
* Fix to pass `async` option to the HTTP sender. |
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.
sorry for not picking this up in #167 and thanks for adding 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.
💯
This PR is to support the "writing" part of B3 single header (#126)
Also, fixes #115
@adriancole @jcarres-mdsol @jfeltesse-mdsol