public class NoOpMetricsRecorder implements MetricsRecorderMetrics recorder implementation, used to stub out metrics instrumentation when metrics are disabled.
WARNING: This class is intended for internal use only. It was made public to be used across packages as a default. It should not be used by external customers and its API may change without notice.
Implements
MetricsRecorderConstructors
NoOpMetricsRecorder()
public NoOpMetricsRecorder()Methods
recordAttemptCount(long count, Map<String,String> attributes)
public void recordAttemptCount(long count, Map<String,String> attributes)Records the count of a single RPC attempt.
| Parameters | |
|---|---|
| Name | Description |
count |
long |
attributes |
Map<String,String> |
recordAttemptLatency(double latencyMs, Map<String,String> attributes)
public void recordAttemptLatency(double latencyMs, Map<String,String> attributes)Records the latency of a single RPC attempt in milliseconds.
| Parameters | |
|---|---|
| Name | Description |
latencyMs |
double |
attributes |
Map<String,String> |
recordOperationCount(long count, Map<String,String> attributes)
public void recordOperationCount(long count, Map<String,String> attributes)Records the count of an operation.
| Parameters | |
|---|---|
| Name | Description |
count |
long |
attributes |
Map<String,String> |
recordOperationLatency(double latencyMs, Map<String,String> attributes)
public void recordOperationLatency(double latencyMs, Map<String,String> attributes)Records the total latency of an operation (including retries) in milliseconds.
| Parameters | |
|---|---|
| Name | Description |
latencyMs |
double |
attributes |
Map<String,String> |
recordTransactionAttemptCount(long count, Map<String,String> attributes)
public void recordTransactionAttemptCount(long count, Map<String,String> attributes)Records the number of attempts a transaction took.
| Parameters | |
|---|---|
| Name | Description |
count |
long |
attributes |
Map<String,String> |
recordTransactionLatency(double latencyMs, Map<String,String> attributes)
public void recordTransactionLatency(double latencyMs, Map<String,String> attributes)Records the total latency of a transaction in milliseconds.
| Parameters | |
|---|---|
| Name | Description |
latencyMs |
double |
attributes |
Map<String,String> |