OpenTelemetry PHP

MeterProviderInterface

Table of Contents

Methods

getMeter()  : MeterInterface
Returns a `Meter` for the given instrumentation scope.

Methods

getMeter()

Returns a `Meter` for the given instrumentation scope.

public getMeter(string $name[, string|null $version = null ][, string|null $schemaUrl = null ][, iterable<non-empty-string, string|bool|float|int|array<string|int, mixed>|null> $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<non-empty-string, string|bool|float|int|array<string|int, mixed>|null> = []

instrumentation scope attributes

Tags
see
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#get-a-meter
Return values
MeterInterface

meter instance for the instrumentation scope


        
On this page

Search results