class

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
Source
enabled(metadata : Metadata) : Bool
Source
enter(id : Core::Span::Id) : Nil
Source
enters
Source
event(event : Core::Event) : Nil
Source
events
Source
exit(id : Core::Span::Id) : Nil
Source
exits
Source
expect_event_named(name : String) : self
Source
new_span(attrs : Core::Span::Attributes) : Core::Span::Id
Source
record(id : Core::Span::Id, values : Core::Span::Record) : Nil
Source
record_follows_from(span : Core::Span::Id, follows : Core::Span::Id) : Nil
Source
register_callsite(metadata : Metadata) : Callsite::Interest
Source
spans
Source