OpenTelemetry PHP

Instrument
in package

FinalYes

Table of Contents

Properties

$advisory  : array<string|int, mixed>
$description  : string
$name  : string
$type  : string|InstrumentType
$unit  : string

Methods

__construct()  : mixed
A null unit or description is stored as an empty string. The spec treats them as the same.

Properties

$advisory read-only

public array<string|int, mixed> $advisory = []

$description read-only

public string $description

Methods

__construct()

A null unit or description is stored as an empty string. The spec treats them as the same.

public __construct(string|InstrumentType $type, string $name, string|null $unit, string|null $description[, array<string|int, mixed> $advisory = [] ]) : mixed
Parameters
$type : string|InstrumentType
$name : string
$unit : string|null
$description : string|null
$advisory : array<string|int, mixed> = []
Tags
see
https://github.com/open-telemetry/opentelemetry-specification/blob/v1.61.0/specification/metrics/sdk.md#instrument-unit
https://github.com/open-telemetry/opentelemetry-specification/blob/v1.61.0/specification/metrics/sdk.md#instrument-description
On this page

Search results