Skip to content

Commit 736eb90

Browse files
committed
Don't panic where we shouldn't
Signed-off-by: Caleb Schoepp <[email protected]>
1 parent fd550c0 commit 736eb90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/world/src/conversions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ mod otel {
512512
Self {
513513
span_context: value.span_context.into(),
514514
parent_span_id: opentelemetry::trace::SpanId::from_hex(&value.parent_span_id)
515-
.expect("TODO THIS IS BAD"),
515+
.unwrap_or(opentelemetry::trace::SpanId::INVALID),
516516
span_kind: value.span_kind.into(),
517517
name: value.name.into(),
518518
start_time: value.start_time.into(),

0 commit comments

Comments
 (0)