class

Tracing::And

Inherits Tracing::Layer < Reference < Object

Enabled iff both wrapped filters are enabled.

Constructors

new(a : Layer, b : Layer)
Source

Instance methods

enabled?(metadata : Metadata, ctx : LayerContext) : Bool

Returns true if this layer would enable the given metadata.

Source
max_level_hint

The most restrictive (least verbose) of the two hints; nil if either is nil.

Source
on_close(id : Core::Span::Id, ctx : LayerContext) : Nil

Called immediately before a span is closed and removed from the registry.

Source
on_enter(id : Core::Span::Id, ctx : LayerContext) : Nil

Called when a span is entered.

Source
on_exit(id : Core::Span::Id, ctx : LayerContext) : Nil

Called when a span is exited.

Source
on_new_span(attrs : Core::Span::Attributes, id : Core::Span::Id, ctx : LayerContext) : Nil

Called when a new span is created.

Source
on_record(id : Core::Span::Id, values : Core::Span::Record, ctx : LayerContext) : Nil

Called when fields are recorded on a span.

Source
on_register_callsite(metadata : Metadata, ctx : LayerContext) : Callsite::Interest

Called when a callsite is registered.

Source