class DeferredTracer implements TracerInterface

internal  
 

Keep a pre-fork tracer handle usable after a worker provider is bound.

Properties

protected TracerInterface|null $delegate

Methods

__construct(InstrumentationScope $instrumentationScope)

Create a deferred tracer.

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.

Parameters

InstrumentationScope $instrumentationScope

at line 33
void bind(TracerProviderInterface $provider)

Bind this handle to a tracer from the given provider.

Parameters

TracerProviderInterface $provider

Return Value

void

at line 46
void unbind()

Unbind this handle from its worker tracer.

Return Value

void

at line 54
SpanBuilderInterface spanBuilder(string $spanName)

Create a span builder from the current tracer.

Parameters

string $spanName

Return Value

SpanBuilderInterface

at line 63
bool isEnabled()

Determine whether the current tracer is enabled.

Return Value

bool