Skip to content

Commit 168ca43

Browse files
committed
Use specific name for "frame" span field
Otherwise the field would be named "message" by default
1 parent 64d0d44 commit 168ca43

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_const_eval/src/interpret

1 file changed

+1
-1
lines changed

compiler/rustc_const_eval/src/interpret/stack.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
401401
// to put the "frame" span on a separate trace thread/line than other spans, to make the
402402
// visualization in <https://ui.perfetto.dev> easier to interpret. It is set to a value of
403403
// [tracing::field::Empty] so that other tracing layers (e.g. the logger) will ignore it.
404-
let span = info_span!("frame", tracing_separate_thread = Empty, "{}", instance);
404+
let span = info_span!("frame", tracing_separate_thread = Empty, frame = %instance);
405405
self.frame_mut().tracing_span.enter(span);
406406

407407
interp_ok(())

0 commit comments

Comments
 (0)