Package com.google.api.gax.tracing
Interface ApiTracerFactory
-
- All Known Implementing Classes:
BaseApiTracerFactory,OpencensusTracerFactory
@InternalApi @InternalExtensionOnly public interface ApiTracerFactoryA factory to create new instances ofApiTracers.In general a single instance of an
ApiTracerwill correspond to a single logical operation.For internal use only. google-cloud-java libraries should extend
BaseApiTracerFactory.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classApiTracerFactory.OperationTypeThe type of operation theApiTraceris tracing.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ApiTracernewTracer(ApiTracer parent, SpanName spanName, ApiTracerFactory.OperationType operationType)Create a newApiTracerthat will be a child of the current context.
-
-
-
Method Detail
-
newTracer
ApiTracer newTracer(ApiTracer parent, SpanName spanName, ApiTracerFactory.OperationType operationType)
Create a newApiTracerthat will be a child of the current context.- Parameters:
parent- the parent of this tracerspanName- the name of the new spanoperationType- the type of operation that the tracer will trace
-
-