OpenTelemetry PHP

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

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
psalm-suppress

PropertyTypeCoercion


        
On this page

Search results