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 buildApiTracers 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 Modifier Constructor Description protectedBaseApiTracerFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BaseApiTracerFactorygetInstance()ApiTracernewTracer(ApiTracer parent, SpanName spanName, ApiTracerFactory.OperationType operationType)Create a newApiTracerthat will be a child of the current context.
-
-
-
Method Detail
-
getInstance
public static BaseApiTracerFactory 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
-
-