Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

zipkin: make extractor also accept "true" for the x-b3-sampled header #356

Merged
merged 1 commit into from
Dec 7, 2018

Conversation

bogatuadrian
Copy link
Contributor

@bogatuadrian bogatuadrian commented Dec 7, 2018

Which problem is this PR solving?

Resolves #355.

Short description of the changes

Make the zipkin propagator returned by zipkin.NewZipkinB3HTTPHeaderPropagator() accept x-b3-sampled with a value of "true", not only "1" for interoperability with other frameworks that send the value in this format.

Also add relevant tests.

@codecov
Copy link

codecov bot commented Dec 7, 2018

Codecov Report

Merging #356 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #356   +/-   ##
=======================================
  Coverage   87.19%   87.19%           
=======================================
  Files          54       54           
  Lines        2999     2999           
=======================================
  Hits         2615     2615           
  Misses        272      272           
  Partials      112      112
Impacted Files Coverage Δ
zipkin/propagation.go 86.36% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7df3a19...8e72b15. Read the comment docs.

Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

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

Thanks!

@yurishkuro yurishkuro merged commit 95576ea into jaegertracing:master Dec 7, 2018
@bogatuadrian bogatuadrian deleted the support-x-b3-sampled-true branch December 7, 2018 19:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants