Skip to content

Commit 642db4f

Browse files
Copilotcijothomas
andcommitted
Fix deprecated TraceId and SpanId construction in tests
Co-authored-by: cijothomas <[email protected]>
1 parent 2eaff88 commit 642db4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opentelemetry-sdk/src/logs/logger_provider.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,8 +607,8 @@ mod tests {
607607
tracer.in_span("test-span", |cx| {
608608
let ambient_ctxt = cx.span().span_context().clone();
609609
let explicit_ctxt = TraceContext {
610-
trace_id: TraceId::from_u128(13),
611-
span_id: SpanId::from_u64(14),
610+
trace_id: TraceId::from(13u128),
611+
span_id: SpanId::from(14u64),
612612
trace_flags: None,
613613
};
614614

0 commit comments

Comments
 (0)