ValidInstrumentation
in package
implements
InstrumentationInterface
uses
InstrumentationTrait
Table of Contents
Interfaces
Properties
- $logger : LoggerInterface
- $meter : MeterInterface
- $propagator : TextMapPropagatorInterface
- $tracer : TracerInterface
- $tracerProvider : TracerProviderInterface
Methods
- __construct() : mixed
- activate() : bool
- This method registers and activates the instrumentation with the OpenTelemetry API/SDK and thus the instrumentation will be used to generate telemetry data.
- getLogger() : LoggerInterface
- getMeter() : MeterInterface
- getName() : string
- getPropagator() : TextMapPropagatorInterface
- getSchemaUrl() : string|null
- getTracer() : TracerInterface
- getTracerProvider() : TracerProviderInterface
- getVersion() : string|null
- init() : bool
- setLogger() : void
- setMeterProvider() : void
- setPropagator() : void
- setTracerProvider() : void
- initDefaults() : void
- validateImplementation() : void
Properties
$logger
private
LoggerInterface
$logger
$meter
private
MeterInterface
$meter
$propagator
private
TextMapPropagatorInterface
$propagator
$tracer
private
TracerInterface
$tracer
$tracerProvider
private
TracerProviderInterface
$tracerProvider
Methods
__construct()
public
__construct() : mixed
activate()
This method registers and activates the instrumentation with the OpenTelemetry API/SDK and thus the instrumentation will be used to generate telemetry data.
public
activate() : bool
Return values
boolgetLogger()
public
getLogger() : LoggerInterface
Return values
LoggerInterfacegetMeter()
public
getMeter() : MeterInterface
Return values
MeterInterfacegetName()
public
getName() : string
Return values
stringgetPropagator()
public
getPropagator() : TextMapPropagatorInterface
Return values
TextMapPropagatorInterfacegetSchemaUrl()
public
getSchemaUrl() : string|null
Return values
string|nullgetTracer()
public
getTracer() : TracerInterface
Return values
TracerInterfacegetTracerProvider()
public
getTracerProvider() : TracerProviderInterface
Return values
TracerProviderInterfacegetVersion()
public
getVersion() : string|null
Return values
string|nullinit()
public
init() : bool
Return values
boolsetLogger()
public
setLogger(LoggerInterface $logger) : void
Parameters
- $logger : LoggerInterface
setMeterProvider()
public
setMeterProvider(MeterProviderInterface $meterProvider) : void
Parameters
- $meterProvider : MeterProviderInterface
setPropagator()
public
setPropagator(TextMapPropagatorInterface $propagator) : void
Parameters
- $propagator : TextMapPropagatorInterface
setTracerProvider()
public
setTracerProvider(TracerProviderInterface $tracerProvider) : void
Parameters
- $tracerProvider : TracerProviderInterface
initDefaults()
private
initDefaults() : void
validateImplementation()
private
validateImplementation() : void