class LoggingMeter implements Meter (View source)

Implements a default meter which logs metrics on a regular basis. Note that to reduce the performance impact of using this meter, this class is not actually used by the SDK, and simply acts as a placeholder which triggers a native implementation to be used instead.

Methods

flushInterval(int $duration)

No description

valueRecorder(string $name, array $tags)

Creates a new value recorder for a metric with the specified tags.

Details

LoggingMeter flushInterval(int $duration)

No description

Parameters

int $duration

duration in microseconds how often the metrics should be flushed in the log.

Return Value

LoggingMeter

ValueRecorder valueRecorder(string $name, array $tags)

Creates a new value recorder for a metric with the specified tags.

Parameters

string $name

The name of the metric.

array $tags

The tags to associate with the metric.

Return Value

ValueRecorder