LoggingMeter
in package
implements
Meter
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.
Interfaces, Classes and Traits
- Meter
- Providers an interface to create value recorders for recording metrics.
Table of Contents
- flushInterval() : LoggingMeter
- valueRecorder() : ValueRecorder
- Creates a new value recorder for a metric with the specified tags.
Methods
flushInterval()
public
flushInterval(int $duration) : LoggingMeter
Parameters
- $duration : int
-
duration in microseconds how often the metrics should be flushed in the log.
Return values
LoggingMeter —valueRecorder()
Creates a new value recorder for a metric with the specified tags.
public
valueRecorder(string $name, array<string|int, mixed> $tags) : ValueRecorder
Parameters
- $name : string
-
The name of the metric.
- $tags : array<string|int, mixed>
-
The tags to associate with the metric.