Skip to content

Commit

Permalink
Reset stats on trace restarts
Browse files Browse the repository at this point in the history
  • Loading branch information
jonlamb-gh committed Nov 6, 2024
1 parent 027b895 commit b15c66e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/context_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ impl ContextManager {

pub fn observe_trace_restart(&mut self) {
self.first_event_observed = false;
self.context_stats.clear();
}

pub fn set_degraded<S: ToString>(&mut self, reason: S) {
Expand Down

0 comments on commit b15c66e

Please sign in to comment.