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

Update zipkin propagation logic to support 128bit traceIDs #373

Merged
merged 3 commits into from
Feb 14, 2019

Conversation

douglas-reid
Copy link
Contributor

Signed-off-by: Douglas Reid [email protected]

Which problem is this PR solving?

  • Zipkin propagation logic does not support 128bit trace IDs

Short description of the changes

  • Use existing TraceID support for 128bit parsing/serialization instead of custom logic in the propagation.go file

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 for the PR! Could you please add a unit test that validates the 128bit logic?

@codecov
Copy link

codecov bot commented Feb 14, 2019

Codecov Report

Merging #373 into master will increase coverage by 0.06%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #373      +/-   ##
==========================================
+ Coverage   87.22%   87.29%   +0.06%     
==========================================
  Files          54       54              
  Lines        3006     3006              
==========================================
+ Hits         2622     2624       +2     
+ Misses        272      271       -1     
+ Partials      112      111       -1
Impacted Files Coverage Δ
zipkin/propagation.go 90.9% <100%> (+4.54%) ⬆️

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 7429a0f...527f301. Read the comment docs.

Signed-off-by: Douglas Reid <[email protected]>
@douglas-reid
Copy link
Contributor Author

@yurishkuro Sure. Added some tests. Please let me know if more is needed.

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.

this is great, thank you!

@yurishkuro
Copy link
Member

oh, did you miss the sign-off on the last commit?

assert.EqualValues(t, jaeger.TraceID{High: high, Low: low}, spanCtx.TraceID())

hdr := opentracing.TextMapCarrier{}
propagator.Inject(spanCtx, hdr)

Choose a reason for hiding this comment

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

Error return value of propagator.Inject is not checked (from errcheck)

@douglas-reid
Copy link
Contributor Author

@yurishkuro probably. updated commit and force pushed.

@yurishkuro yurishkuro merged commit 64f5786 into jaegertracing:master Feb 14, 2019
@yurishkuro
Copy link
Member

🎉

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.

3 participants