You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-11-23 22:34:47 +02:00
* Check that IDs round-trip between binary and hex string formats. `TestIDsRoundTrip` is patterned after `TestNewIDs`. * Check that bad values give the expected errors. * Use larger values in `TestWithIDGenerator`. Previously, nearly all the bits were zero so a mistake in encoding/decoding higher bits could be missed. Start with arbitrary values with more bits set. (Span ID still has top half as zero due to taking an uint64) * Modify `testIDGenerator` so this ^^ change runs on 32-bit platforms. The idea for more tests arose while considering #6791. Does not need a CHANGELOG entry - test only. --------- Signed-off-by: Bryan Boreham <bjboreham@gmail.com> Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>