@InternalApi
@InternalExtensionOnly
public interface ApiTracerFactory
ApiTracers.
In general a single instance of an ApiTracer will correspond to a single logical
operation.
For internal use only. google-cloud-java libraries should extend BaseApiTracerFactory.
| Modifier and Type | Interface and Description |
|---|---|
static class |
ApiTracerFactory.OperationType
The type of operation the
ApiTracer is tracing. |
| Modifier and Type | Method and Description |
|---|---|
ApiTracer |
newTracer(ApiTracer parent,
SpanName spanName,
ApiTracerFactory.OperationType operationType)
Create a new
ApiTracer that will be a child of the current context. |
ApiTracer newTracer(ApiTracer parent, SpanName spanName, ApiTracerFactory.OperationType operationType)
ApiTracer that will be a child of the current context.parent - the parent of this tracerspanName - the name of the new spanoperationType - the type of operation that the tracer will trace