View Source otel_tracer_provider (opentelemetry_api v1.3.0)

This 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.

Link to this section Summary

Link to this section Functions

-spec force_flush() -> ok | {error, term()} | timeout.
-spec force_flush(atom() | pid()) -> ok | {error, term()} | timeout.
Link to this function

get_tracer(Name, Vsn, SchemaUrl)

View Source
-spec get_tracer(Name, Vsn, SchemaUrl) -> Tracer
              when
                  Name :: atom(),
                  Vsn :: unicode:chardata() | undefined,
                  SchemaUrl :: uri_string:uri_string() | undefined,
                  Tracer :: opentelemetry:tracer().
Link to this function

get_tracer(ServerRef, Name, Vsn, SchemaUrl)

View Source
-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.
-spec resource(atom() | pid() | string()) -> term() | undefined.
This function is deprecated. Start the TracerProvider through the SDK.