XRay trace ID conversion #5257
Unanswered
errordeveloper
asked this question in
Q&A
Replies: 1 comment 4 replies
-
I believe this is correct. Skipping the timestamp validation and just looking at the content[0] = '1'
content[1] = '-'
hex.Encode(content[2:10], b[0:4])
content[10] = '-'
hex.Encode(content[identifierOffset:], traceIDBytes[4:16]) // overwrite with identifier
return string(content[0:traceIDLength]), nil
This fills all 35 bytes of |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am looking at XRay exporter code, and I'm not quite sure how it's actually meant to work.
opentelemetry-collector-contrib/exporter/awsxrayexporter/internal/translator/segment.go
Lines 257 to 304 in ac26625
So XRay IDs are supposed to be much longer (35 bytes, not 16), however the code seems to ignore the length and just checks the epoch bytes... I'm not sure if this well intended, or a bug?
Beta Was this translation helpful? Give feedback.
All reactions