Tracing::MockSubscriber
Inherits Tracing::Core::Subscriber < Reference < Object
A subscriber for testing that records events and spans.
Supports basic expectations via expect_event_named and
assert_finished for verification.
Ported from upstream tracing_mock::subscriber::MockSubscriber.
Instance methods
assert_finished
Sourceenter(id : Core::Span::Id) : Nil
Sourceenters
Sourceevent(event : Core::Event) : Nil
Sourceevents
Sourceexit(id : Core::Span::Id) : Nil
Sourceexits
Sourcenew_span(attrs : Core::Span::Attributes) : Core::Span::Id
Sourcerecord(id : Core::Span::Id, values : Core::Span::Record) : Nil
Sourcerecord_follows_from(span : Core::Span::Id, follows : Core::Span::Id) : Nil
Sourceregister_callsite(metadata : Metadata) : Callsite::Interest
Sourcespans
Source