LateBindingTracer
in package
implements
TracerInterface
Table of Contents
Interfaces
Properties
- $factory : Closure
- $tracer : TracerInterface|null
Methods
- __construct() : mixed
- isEnabled() : bool
- Determine if the tracer is enabled. Instrumentation authors SHOULD call this method prior to creating a new span.
- spanBuilder() : SpanBuilderInterface
Properties
$factory read-only
private
Closure
$factory
$tracer
private
TracerInterface|null
$tracer
= null
Methods
__construct()
public
__construct(callable(): TracerInterface $factory) : mixed
Parameters
- $factory : callable(): TracerInterface
isEnabled()
Determine if the tracer is enabled. Instrumentation authors SHOULD call this method prior to creating a new span.
public
isEnabled() : bool
Return values
boolspanBuilder()
public
spanBuilder(string $spanName) : SpanBuilderInterface
Parameters
- $spanName : string