forked from jaegertracing/jaeger
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix "index out of range" when receiving a dual client/server Zipkin s…
…pan (jaegertracing#4160) ## Which problem is this PR solving? - Resolves jaegertracing#3404 ## Short description of the changes - Handle case where one input zipkin span is transformed into two Jaeger spans, but still return response with the same length as input - Add a test for dial client/server span provided in jaegertracing#3404 - Side effect: refactor `cmd/collector/app/zipkin` to avoid circular dependencies Signed-off-by: Yuri Shkuro <[email protected]> Signed-off-by: shubbham1215 <[email protected]>
- Loading branch information
1 parent
fea96a6
commit add1047
Showing
22 changed files
with
377 additions
and
140 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
cmd/collector/app/handler/testdata/zipkin_v1_merged_spans.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
[ | ||
{ | ||
"traceId": "4ed11df465275600", | ||
"id": "4ed11df465275600", | ||
"name": "get /", | ||
"timestamp": 1633073248674949, | ||
"duration": 14861, | ||
"localEndpoint": { | ||
"serviceName": "first_service", | ||
"ipv4": "10.0.2.15" | ||
}, | ||
"annotations": [ | ||
{ | ||
"timestamp": 1633073248674949, | ||
"value": "sr" | ||
}, | ||
{ | ||
"timestamp": 163307324868981, | ||
"value": "ss" | ||
} | ||
] | ||
}, | ||
{ | ||
"traceId": "4ed11df465275600", | ||
"parentId": "4ed11df465275600", | ||
"id": "c943743e25dc2cdf", | ||
"name": "get /api", | ||
"timestamp": 1633073248678309, | ||
"duration": 3360, | ||
"localEndpoint": { | ||
"serviceName": "first_service", | ||
"ipv4": "10.0.2.15" | ||
}, | ||
"annotations": [ | ||
{ | ||
"timestamp": 1633073248678309, | ||
"value": "cs" | ||
}, | ||
{ | ||
"timestamp": 1633073248681669, | ||
"value": "sr" | ||
}, | ||
{ | ||
"timestamp": 1633073248685029, | ||
"value": "cr" | ||
}, | ||
{ | ||
"timestamp": 1633073248688388, | ||
"value": "ss" | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.