Skip to content

Commit

Permalink
fix(x86_64): fix TraceSubscriber emitting enter instead of exit (#296)
Browse files Browse the repository at this point in the history
Currently, the `x86_64` `TraceSubscriber` incorrectly writes a duplicate
`Enter` message to the serial port when a span is exited, instead of an
`Exit` message. This commit fixes that.

Fixes #290
  • Loading branch information
Amit-L authored Oct 6, 2023
1 parent c14cdc9 commit f840f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/x86_64/core/src/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ where
}

fn exit(&self, span: &span::Id) {
with_serial(|serial| serial.enter(span));
with_serial(|serial| serial.exit(span));
}

fn record_follows_from(&self, _: &span::Id, _: &span::Id) {
Expand Down

0 comments on commit f840f43

Please sign in to comment.