Skip to content

Commit 413a512

Browse files
committed
Don't panic where we shouldn't
Signed-off-by: Caleb Schoepp <caleb.schoepp@fermyon.com>
1 parent 7cafec5 commit 413a512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/world/src/conversions.rs

Lines changed: 1 addition & 1 deletion
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)