TracerProvider[F[_]] is the entry point of the tracing API. It provides access to Tracer instances for instrumenting your application.
Overview
TheTracerProvider is responsible for creating and managing Tracer instances. Each tracer is associated with an instrumentation scope, typically identified by the library or package name.
Methods
get
The name of the instrumentation scope, such as the instrumentation library, package, or fully qualified class name
F[Tracer[F]]
Creates a named Tracer instance.
tracer
The name of the instrumentation scope, such as the instrumentation library, package, or fully qualified class name
TracerBuilder[F]
Creates a TracerBuilder for a named Tracer instance. The builder allows you to configure additional metadata such as version and schema URL.
liftTo
The target effect type with a
MonadCancelThrow instanceTracerProvider[G]
Modifies the context F using an implicit KindTransformer from F to G. This allows you to transform the provider to work with a different effect type.
Requirements:
- Implicit
MonadCancelThrow[F] - Implicit
MonadCancelThrow[G] - Implicit
KindTransformer[F, G]
Companion Object
apply
Returns:TracerProvider[F]
Summons an implicit TracerProvider[F] instance from the context.
noop
The effect type with an
Applicative instanceTracerProvider[F]
Creates a no-op implementation of the TracerProvider. Both the provider and the TracerBuilder it creates have no-op implementations.