public interface ApiTracerFactoryA factory to create new instances of 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.
Methods
newTracer(ApiTracer parent, SpanName spanName, ApiTracerFactory.OperationType operationType)
public abstract ApiTracer newTracer(ApiTracer parent, SpanName spanName, ApiTracerFactory.OperationType operationType)Create a new ApiTracer that will be a child of the current context.
| Parameters | |
|---|---|
| Name | Description |
parent |
ApiTracerthe parent of this tracer |
spanName |
SpanNamethe name of the new span |
operationType |
ApiTracerFactory.OperationTypethe type of operation that the tracer will trace |
| Returns | |
|---|---|
| Type | Description |
ApiTracer |
|