Skip to content

Commit 73d35bc

Browse files
committed
Use big-endian bytes for random SpanId
1 parent ff8697f commit 73d35bc

File tree

1 file changed

+1
-1
lines changed
  • relay-event-schema/src/protocol/contexts

1 file changed

+1
-1
lines changed

relay-event-schema/src/protocol/contexts/trace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ relay_common::impl_str_serde!(SpanId, "a span identifier");
172172
impl SpanId {
173173
pub fn random() -> Self {
174174
let value: u64 = rand::random_range(1..=u64::MAX);
175-
Self(value.to_ne_bytes())
175+
Self(value.to_be_bytes())
176176
}
177177
}
178178

0 commit comments

Comments
 (0)