class

Crig::Telemetry::Span

Inherits Crig::Telemetry::SpanCombinator < Reference < Object

Constructors

chat_span(provider_name : String, model : String, preamble : String | Nil, request_messages_json : String | Nil) : Span
Source
current

Create a provider-level chat span.

Source
for_tracer(name : String, operation : String) : Span
Source
new(inner : Tracing::Span)
Source

Instance methods

disabled?
Source
end_span
Source
in_scope
Source
record_field(key : String, value : String) : Nil

Delegate record_field to inner Tracing::Span

Source
record_field(key : String, value : Int32 | Int64) : Nil
Source
record_field(key : String, value : Float64) : Nil
Source
record_field(key : String, value : Bool) : Nil
Source
recording?
Source
set_attribute(key : String, value : String) : Nil
Source
set_attribute(key : String, value : Int32 | Int64) : Nil
Source
set_attribute(key : String, value : Float64) : Nil
Source
set_attribute(key : String, value : Bool) : Nil
Source