DeferredTracer
class DeferredTracer implements TracerInterface
| internal |
Keep a pre-fork tracer handle usable after a worker provider is bound.
Properties
| protected TracerInterface|null | $delegate |
Methods
void
bind(TracerProviderInterface $provider)
Bind this handle to a tracer from the given provider.
void
unbind()
Unbind this handle from its worker tracer.
SpanBuilderInterface
spanBuilder(string $spanName)
Create a span builder from the current tracer.
bool
isEnabled()
Determine whether the current tracer is enabled.
Details
at line 26
__construct(InstrumentationScope $instrumentationScope)
Create a deferred tracer.
at line 33
void
bind(TracerProviderInterface $provider)
Bind this handle to a tracer from the given provider.
at line 46
void
unbind()
Unbind this handle from its worker tracer.
at line 54
SpanBuilderInterface
spanBuilder(string $spanName)
Create a span builder from the current tracer.
at line 63
bool
isEnabled()
Determine whether the current tracer is enabled.