Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

fix B3Codec extract error for b3 header #301

Closed
wants to merge 1 commit into from

Conversation

MuchContact
Copy link

@MuchContact MuchContact commented Jan 18, 2021

Which problem is this PR solving?

  • b3 header propagation error

Short description of the changes

  • change checking logic

@codecov
Copy link

codecov bot commented Jan 18, 2021

Codecov Report

Merging #301 (be3efd0) into master (72a1dd1) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #301   +/-   ##
=======================================
  Coverage   95.91%   95.91%           
=======================================
  Files          25       25           
  Lines        1935     1935           
  Branches      265      265           
=======================================
  Hits         1856     1856           
  Misses         52       52           
  Partials       27       27           
Impacted Files Coverage Δ
jaeger_client/codecs.py 97.44% <100.00%> (ø)

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 72a1dd1...be3efd0. Read the comment docs.

@@ -296,7 +296,7 @@ def inject(self, span_context, carrier):
carrier[self.sampled_header] = '1'

def extract(self, carrier):
if not isinstance(carrier, dict):
if not hasattr(carrier, 'items'):
Copy link
Member

Choose a reason for hiding this comment

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

it doesn't seem like it'd work in py2. maybe six has an equivalent test function

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.

None yet

2 participants