class

Tracing::ChromeLayer

Inherits Tracing::Layer < Reference < Object

A Layer that writes Chrome trace format JSON.

Constructors

new(builder : ChromeLayerBuilder, out __arg0 : Channel(Message))
Source

Instance methods

get_callsite(data : EventOrSpan) : CallsiteInfo
Source
get_root_id(span : SpanRef) : UInt64
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_event(event : Core::Event, ctx : LayerContext) : Nil

Called when an event is recorded.

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
send_message(message : Message) : Nil
Source