Tracer
in package
implements
TracerInterface
Table of Contents
Interfaces
Constants
- FALLBACK_SPAN_NAME = 'empty'
Properties
- $config : Config
- $instrumentationScope : InstrumentationScopeInterface
- $tracerSharedState : TracerSharedState
Methods
- __construct() : mixed
- getInstrumentationScope() : InstrumentationScopeInterface
- isEnabled() : bool
- Determine if the tracer is enabled. Instrumentation authors SHOULD call this method prior to creating a new span.
- spanBuilder() : SpanBuilderInterface
- updateConfig() : void
Constants
FALLBACK_SPAN_NAME
public
mixed
FALLBACK_SPAN_NAME
= 'empty'
Properties
$config
private
Config
$config
$instrumentationScope read-only
private
InstrumentationScopeInterface
$instrumentationScope
$tracerSharedState read-only
private
TracerSharedState
$tracerSharedState
Methods
__construct()
public
__construct(TracerSharedState $tracerSharedState, InstrumentationScopeInterface $instrumentationScope[, Configurator|null $configurator = null ]) : mixed
Parameters
- $tracerSharedState : TracerSharedState
- $instrumentationScope : InstrumentationScopeInterface
- $configurator : Configurator|null = null
getInstrumentationScope()
public
getInstrumentationScope() : InstrumentationScopeInterface
Return values
InstrumentationScopeInterfaceisEnabled()
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
Tags
Return values
SpanBuilderInterfaceupdateConfig()
public
updateConfig(Configurator $configurator) : void
Parameters
- $configurator : Configurator