Flow PHP

Instrument

Tags
see
https://opentelemetry.io/docs/specs/otel/metrics/api/

Methods

collect()  : array<string|int, Metric>
Collect aggregated metrics for export.
description()  : string|null
Get the instrument description.
name()  : string
Get the instrument name.
unit()  : string|null
Get the unit of measurement.

Methods

collect()

Collect aggregated metrics for export.

public collect() : array<string|int, Metric>

Returns all aggregated metrics since the last collection, then resets the internal aggregation state.

Return values
array<string|int, Metric> —

Aggregated metrics ready for export

description()

Get the instrument description.

public description() : string|null
Return values
string|null

name()

Get the instrument name.

public name() : string
Return values
string

unit()

Get the unit of measurement.

public unit() : string|null
Return values
string|null
On this page

Search results