otel_tracer_provider (OpenTelemetry API v1.4.0)
View SourceThis module defines the API for a TracerProvider. A TracerProvider stores Tracer configuration and is how Tracers are accessed. An implementation must be a gen_server
that handles the API's calls. The SDK should register a TracerProvider with the name otel_tracer_provider
which is used as the default global Provider.
Summary
Functions
-spec force_flush() -> ok | {error, term()} | timeout.
-spec get_tracer(Name, Vsn, SchemaUrl) -> Tracer when Name :: atom(), Vsn :: unicode:chardata() | undefined, SchemaUrl :: uri_string:uri_string() | undefined, Tracer :: opentelemetry:tracer().
-spec get_tracer(ServerRef, Name, Vsn, SchemaUrl) -> Tracer when ServerRef :: atom() | pid() | string(), Name :: atom(), Vsn :: unicode:chardata() | undefined, SchemaUrl :: uri_string:uri_string() | undefined, Tracer :: opentelemetry:tracer().
-spec resource() -> term() | undefined.
This function is deprecated. Start the TracerProvider through the SDK.