abstract class OpenTelemetry::Trace::TracerProvider

Overview

Provides tracers for instrumentation scopes. Concurrency: safe for concurrent use. Implementers must preserve this guarantee.

Direct Known Subclasses

Defined in:

api/trace/tracer_provider.cr

Instance Method Summary

Instance Method Detail

abstract def do_tracer(scope : InstrumentationScope) : Tracer #

SPI: implementers override. Applications call #tracer.


[View source]
def tracer(name : String | Nil, version : String | Nil = nil, *, schema_url : String | Nil = nil, attributes = nil) : Tracer #

Retrieves a tracer. Missing and empty names use an empty scope name and emit a warning.


[View source]