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

Add support for writing B3 single header #166

Merged
merged 3 commits into from
Oct 25, 2019
Merged

Add support for writing B3 single header #166

merged 3 commits into from
Oct 25, 2019

Conversation

ykitamura-mdsol
Copy link
Contributor

This PR is to support the "writing" part of B3 single header (#126)

Also, fixes #115

@adriancole @jcarres-mdsol @jfeltesse-mdsol

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/)
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated in 00f824b

Copy link
Member

@codefromthecrypt codefromthecrypt 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. only note is to downcase 'b3' by default as it is specified to be encoded downcase.

@jfeltesse-mdsol
Copy link
Contributor

can you squash the commits in your fork so the history doesn't feature those extra commits related to syncing with upstream?

@ykitamura-mdsol
Copy link
Contributor Author

Rebased on the top of 0.40.1

* Omit ParentSpanId header for root spans.

# 0.40.1
* Fix to pass `async` option to the HTTP sender.
Copy link
Contributor

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 🙇

Copy link
Contributor

@jfeltesse-mdsol jfeltesse-mdsol left a comment

Choose a reason for hiding this comment

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

💯

@jcarres-mdsol jcarres-mdsol merged commit a748303 into openzipkin:master Oct 25, 2019
@ykitamura-mdsol ykitamura-mdsol deleted the feature/write_b3_single_header branch November 17, 2019 18:21
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.

Should omit ParentSpanId header for root spans
4 participants