-
Notifications
You must be signed in to change notification settings - Fork 524
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Strip leading 0s from traceIds and spanIds if the span source is Jaeg…
…er (#3849) (#3855) * traceId has 16 bytes, spanId and parentSpanId have 8 bytes * Jaeger exports traceId, spantId and parentSpanId without leading 0s. We should do the same if the span source is Jaeger in order to enable log correlation (#3837) * Extracted Jaeger traceId/spanId formatting to their own functions (#3837) * Added Jaeger traceId/spanId formatting change to changelog (#3837) * Fix golint (#3837) Co-authored-by: Tobias Stadler <[email protected]>
- Loading branch information
1 parent
a2ee4cc
commit 410447f
Showing
10 changed files
with
146 additions
and
57 deletions.
There are no files selected for viewing
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
37 changes: 37 additions & 0 deletions
37
processor/otel/test_approved/metadata_jaeger_full-traceid.approved.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,37 @@ | ||
{ | ||
"events": [ | ||
{ | ||
"@timestamp": "2019-12-16T12:46:58.000768068Z", | ||
"agent": { | ||
"name": "Jaeger", | ||
"version": "unknown" | ||
}, | ||
"processor": { | ||
"event": "transaction", | ||
"name": "transaction" | ||
}, | ||
"service": { | ||
"language": { | ||
"name": "unknown" | ||
}, | ||
"name": "unknown" | ||
}, | ||
"timestamp": { | ||
"us": 1576500418000768 | ||
}, | ||
"trace": { | ||
"id": "464678300000000046467830" | ||
}, | ||
"transaction": { | ||
"duration": { | ||
"us": 0 | ||
}, | ||
"id": "41414646", | ||
"name": "", | ||
"result": "Success", | ||
"sampled": true, | ||
"type": "custom" | ||
} | ||
} | ||
] | ||
} |
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.