Package com.google.api.gax.tracing
Class MetricsTracerFactory
java.lang.Object
com.google.api.gax.tracing.MetricsTracerFactory
- All Implemented Interfaces:
ApiTracerFactory
A
ApiTracerFactory to build instances of MetricsTracer.
This class wraps the MetricsRecorder and pass it to MetricsTracer. It will be
used to record metrics in MetricsTracer.
This class is expected to be initialized once during client initialization.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.api.gax.tracing.ApiTracerFactory
ApiTracerFactory.OperationType -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
metricsRecorder
-
-
Constructor Details
-
MetricsTracerFactory
-
-
Method Details
-
newTracer
public ApiTracer newTracer(ApiTracer parent, SpanName spanName, ApiTracerFactory.OperationType operationType) Description copied from interface:ApiTracerFactoryCreate a newApiTracerthat will be a child of the current context.- Specified by:
newTracerin interfaceApiTracerFactory- Parameters:
parent- the parent of this tracerspanName- the name of the new spanoperationType- the type of operation that the tracer will trace
-