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 true in x-b3-sampled #1413

Merged
merged 7 commits into from
Oct 29, 2020

Conversation

christopher-taormina-zocdoc
Copy link
Contributor

Fixes #1299

Changes

Adds a string for the possible X-B3-Sampled value of true and checks the received header against both values. Setting the header for outgoing requests remains unchanged.

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Design discussion issue #
  • Changes in public API reviewed

@christopher-taormina-zocdoc christopher-taormina-zocdoc requested a review from a team October 28, 2020 15:43
@codecov
Copy link

codecov bot commented Oct 28, 2020

Codecov Report

Merging #1413 into master will decrease coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1413      +/-   ##
==========================================
- Coverage   81.28%   81.23%   -0.05%     
==========================================
  Files         227      227              
  Lines        6112     6113       +1     
==========================================
- Hits         4968     4966       -2     
- Misses       1144     1147       +3     
Impacted Files Coverage Δ
...nTelemetry.Api/Context/Propagation/B3Propagator.cs 85.86% <100.00%> (+0.15%) ⬆️
...ZPages/Implementation/ZPagesExporterEventSource.cs 56.25% <0.00%> (-6.25%) ⬇️
...emetry.Api/Internal/OpenTelemetryApiEventSource.cs 76.47% <0.00%> (-5.89%) ⬇️

@cijothomas
Copy link
Member

@chris-smith-zocdoc Can you add a line to the changelog as well? Thank you!

Released 2020-07-23

* Initial release
# Changelog
Copy link
Member

Choose a reason for hiding this comment

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

some encoding got accidentaly changed to this file? there must have been some CI which detects this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

didn't see that coming, let me take a look

Copy link
Contributor

Choose a reason for hiding this comment

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

check if u are using utf8. I saw that sometimes it changed from utf8 to utf8-BOM.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I edited it in vs code and it claimed it saved as utf-8

Copy link
Contributor

Choose a reason for hiding this comment

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

you solved :) what was the issue in the end?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

definitely line endings lol

Copy link
Member

@reyang reyang left a comment

Choose a reason for hiding this comment

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

LGTM after the CRLF line ending got removed.

@cijothomas
Copy link
Member

@christopher-taormina-zocdoc can you merge from the latest master? Usually maintainers/approvers have permission to do this in PR, but this one doesn't seem to have it, so you have to do it.

@christopher-taormina-zocdoc
Copy link
Contributor Author

@cijothomas just merged in master. The commit says origin-master but that just the name the branch has on my local git

@cijothomas cijothomas merged commit da4d352 into open-telemetry:master Oct 29, 2020
@cijothomas
Copy link
Member

Thanks @christopher-taormina-zocdoc

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.

Accept X-B3-Sampled header to equal true
4 participants