NoopMeter
in package
implements
Meter
Implements a no-op meter which performs no metrics instrumentation. 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, Traits and Enums
- Meter
- Providers an interface to create value recorders for recording metrics.
Table of Contents
- $instance : NoopMeter|null
- close() : void
- getInstance() : NoopMeter
- valueRecorder() : ValueRecorder
- Creates a new value recorder for a metric with the specified tags.
Properties
$instance
private
static NoopMeter|null
$instance
= null
Methods
close()
public
close() : void
Return values
void —getInstance()
public
static getInstance() : NoopMeter
Return values
NoopMeter —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.