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

[zipkin] Encode span IDs as full 16-hex strings #601

Merged
merged 1 commit into from
Oct 6, 2021

Conversation

nabowler
Copy link
Contributor

@nabowler nabowler commented Oct 6, 2021

Based on the openzipkin/b3-propagation specification, the SpanID and
ParentSpanID are to be encoded as 16 lower-hex characters.

#533 fixed this for TraceID, and fixed the SpanID.String() method, but did not update the Zipkin Propagator to use the fixed SpanID encoding.

This fix uses SpanID.String() to ensure proper encoding of the SpanID and ParentSpanID within the Zipkin Propagator.

Signed-off-by: Nathan Bowler [email protected]

…gator

Based on the openzipkin/b3-propagation specification, the SpanID and
ParentSpanID are to be encoded as 16 lower-hex characters.

jaegertracing#533 fixed this
for TraceID, and fixed the SpanID.String() method, but did not update
the Zipkin Propagator SpanID encoding.

This fix uses SpanID.String() to ensure proper encoding of the SpanID and
ParentSpandID within the Zipkin Propagator.

Signed-off-by: Nathan Bowler <[email protected]>
@nabowler nabowler requested a review from a team as a code owner October 6, 2021 16:53
@nabowler nabowler requested review from vprithvi and removed request for a team October 6, 2021 16:53
@yurishkuro yurishkuro changed the title Encode SpanID and ParentSpanID as a 16 hex characters in zipkin propagator [zipkin] Encode span IDs as full 16-hex strings Oct 6, 2021
@yurishkuro yurishkuro enabled auto-merge (squash) October 6, 2021 17:20
@codecov
Copy link

codecov bot commented Oct 6, 2021

Codecov Report

Merging #601 (d917c92) into master (7aa7af5) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #601   +/-   ##
=======================================
  Coverage   88.58%   88.58%           
=======================================
  Files          61       61           
  Lines        3328     3328           
=======================================
  Hits         2948     2948           
  Misses        252      252           
  Partials      128      128           
Impacted Files Coverage Δ
zipkin/propagation.go 92.72% <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 7aa7af5...d917c92. Read the comment docs.

@yurishkuro yurishkuro merged commit ab82d08 into jaegertracing:master Oct 6, 2021
@yurishkuro
Copy link
Member

thanks!

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