CachedInstrumentation
in package
FinalYes
Provides access to cached {@link TracerInterface} and {@link MeterInterface} instances.
Autoinstrumentation should prefer using a instance over repeatedly obtaining instrumentation instances from .
Table of Contents
Properties
- $attributes : iterable<string|int, mixed>
- $eventLoggers : WeakMap<EventLoggerProviderInterface, EventLoggerInterface>
- $loggers : WeakMap<LoggerProviderInterface, LoggerInterface>
- $meters : WeakMap<MeterProviderInterface, MeterInterface>
- $name : string
- $schemaUrl : string|null
- $tracers : WeakMap<TracerProviderInterface, TracerInterface>
- $version : string|null
Methods
- __construct() : mixed
- eventLogger() : EventLoggerInterface
- logger() : LoggerInterface
- meter() : MeterInterface
- tracer() : TracerInterface
Properties
$attributes read-only
private
iterable<string|int, mixed>
$attributes
= []
$eventLoggers
private
WeakMap<EventLoggerProviderInterface, EventLoggerInterface>
$eventLoggers
$loggers
private
WeakMap<LoggerProviderInterface, LoggerInterface>
$loggers
$meters
private
WeakMap<MeterProviderInterface, MeterInterface>
$meters
$name read-only
private
string
$name
$schemaUrl read-only
private
string|null
$schemaUrl
= null
$tracers
private
WeakMap<TracerProviderInterface, TracerInterface>
$tracers
$version read-only
private
string|null
$version
= null
Methods
__construct()
public
__construct(string $name[, string|null $version = null ][, string|null $schemaUrl = null ][, iterable<string|int, mixed> $attributes = [] ]) : mixed
Parameters
- $name : string
- $version : string|null = null
- $schemaUrl : string|null = null
- $attributes : iterable<string|int, mixed> = []
Tags
eventLogger()
public
eventLogger() : EventLoggerInterface
Return values
EventLoggerInterfacelogger()
public
logger() : LoggerInterface
Return values
LoggerInterfacemeter()
public
meter() : MeterInterface
Return values
MeterInterfacetracer()
public
tracer() : TracerInterface