DeferredTracerProvider
class DeferredTracerProvider implements TracerProviderInterface
Defer real tracer creation until a worker-local provider is available.
Properties
| protected TracerProviderInterface|null | $delegate | ||
| protected DeferredTracer> | $tracers |
Methods
TracerInterface
getTracer(string $name, string|null $version = null, string|null $schemaUrl = null, iterable $attributes = [])
Return a tracer for the given instrumentation scope.
void
bind(TracerProviderInterface $provider)
Bind every pre-fork tracer to a worker-local provider.
void
unbind()
Unbind every pre-fork tracer from its worker-local provider.
Details
at line 25
TracerInterface
getTracer(string $name, string|null $version = null, string|null $schemaUrl = null, iterable $attributes = [])
Return a tracer for the given instrumentation scope.
at line 44
void
bind(TracerProviderInterface $provider)
Bind every pre-fork tracer to a worker-local provider.
at line 56
void
unbind()
Unbind every pre-fork tracer from its worker-local provider.