Package com.google.api.gax.tracing
Class MetricsTracer
java.lang.Object
com.google.api.gax.tracing.MetricsTracer
- All Implemented Interfaces:
ApiTracer
This class computes generic metrics that can be observed in the lifecycle of an RPC operation.
The responsibility of recording metrics should delegate to
MetricsRecorder, hence this
class should not have any knowledge about the observability framework used for metrics recording.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.api.gax.tracing.ApiTracer
ApiTracer.Scope -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttributes(String key, String value) Add attributes that will be attached to all metrics.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.api.gax.tracing.ApiTracer
attemptCancelled, attemptFailed, attemptFailedRetriesExhausted, attemptPermanentFailure, attemptStarted, attemptStarted, attemptSucceeded, batchRequestSent, connectionSelected, inScope, lroStartFailed, lroStartSucceeded, operationCancelled, operationFailed, operationSucceeded, requestSent, responseReceived
-
Constructor Details
-
MetricsTracer
-
-
Method Details
-
addAttributes
Add attributes that will be attached to all metrics. This is expected to be called by handwritten client teams to add additional attributes that are not supposed be collected by Gax.
-