LateBindingMeterProvider
in package
implements
MeterProviderInterface
Table of Contents
Interfaces
Properties
- $factory : Closure
- $meterProvider : MeterProviderInterface|null
Methods
- __construct() : mixed
- getMeter() : MeterInterface
- Returns a `Meter` for the given instrumentation scope.
Properties
$factory read-only
private
Closure
$factory
$meterProvider
private
MeterProviderInterface|null
$meterProvider
= null
Methods
__construct()
public
__construct(callable(): MeterProviderInterface $factory) : mixed
Parameters
- $factory : callable(): MeterProviderInterface
getMeter()
Returns a `Meter` for the given instrumentation scope.
public
getMeter(string $name[, string|null $version = null ][, string|null $schemaUrl = null ][, iterable<string|int, mixed> $attributes = [] ]) : MeterInterface
Parameters
- $name : string
-
name of the instrumentation scope
- $version : string|null = null
-
version of the instrumentation scope
- $schemaUrl : string|null = null
-
schema url to record in the emitted telemetry
- $attributes : iterable<string|int, mixed> = []
-
instrumentation scope attributes
Return values
MeterInterface —meter instance for the instrumentation scope