Package com.google.api.gax.tracing
Class BaseApiTracerFactory
java.lang.Object
com.google.api.gax.tracing.BaseApiTracerFactory
- All Implemented Interfaces:
ApiTracerFactory
- Direct Known Subclasses:
OpencensusTracerFactory
@InternalApi("For internal use by google-cloud-java clients only")
public class BaseApiTracerFactory
extends Object
implements ApiTracerFactory
Base factory that will build
ApiTracers that do nothing.
For internal use only.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.api.gax.tracing.ApiTracerFactory
ApiTracerFactory.OperationType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BaseApiTracerFactorynewTracer(ApiTracer parent, SpanName spanName, ApiTracerFactory.OperationType operationType) Create a newApiTracerthat will be a child of the current context.
-
Constructor Details
-
BaseApiTracerFactory
protected BaseApiTracerFactory()
-
-
Method Details
-
getInstance
-
newTracer
public ApiTracer newTracer(ApiTracer parent, SpanName spanName, ApiTracerFactory.OperationType operationType) Create 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
-