Package com.google.api.gax.tracing
Class GoldenSignalsMetricsTracerFactory
java.lang.Object
com.google.api.gax.tracing.GoldenSignalsMetricsTracerFactory
- All Implemented Interfaces:
ApiTracerFactory
@BetaApi
@InternalApi
public class GoldenSignalsMetricsTracerFactory
extends Object
implements ApiTracerFactory
A
ApiTracerFactory to build instances of GoldenSignalsMetricsTracer.
This class is expected to be initialized once during client initialization.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.api.gax.tracing.ApiTracerFactory
ApiTracerFactory.OperationType -
Constructor Summary
ConstructorsConstructorDescriptionGoldenSignalsMetricsTracerFactory(io.opentelemetry.api.OpenTelemetry openTelemetry) -
Method Summary
Modifier and TypeMethodDescriptionnewTracer(ApiTracer parent, ApiTracerContext methodLevelTracerContext) Create a newApiTracerthat will be a child of the current context.newTracer(ApiTracer parent, SpanName spanName, ApiTracerFactory.OperationType operationType) Create a newApiTracerthat will be a child of the current context.withContext(ApiTracerContext context) Returns a newApiTracerFactorythat will use the provided context to infer attributes for all tracers created by the factory.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.api.gax.tracing.ApiTracerFactory
getApiTracerContext
-
Constructor Details
-
GoldenSignalsMetricsTracerFactory
public GoldenSignalsMetricsTracerFactory(io.opentelemetry.api.OpenTelemetry openTelemetry)
-
-
Method Details
-
newTracer
public ApiTracer newTracer(ApiTracer parent, SpanName spanName, ApiTracerFactory.OperationType operationType) Description copied from interface:ApiTracerFactoryCreate 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
-
newTracer
Description copied from interface:ApiTracerFactoryCreate a newApiTracerthat will be a child of the current context.- Specified by:
newTracerin interfaceApiTracerFactory- Parameters:
parent- the parent of this tracermethodLevelTracerContext- the method-definition-specific tracer context
-
withContext
Description copied from interface:ApiTracerFactoryReturns a newApiTracerFactorythat will use the provided context to infer attributes for all tracers created by the factory.- Specified by:
withContextin interfaceApiTracerFactory- Parameters:
context- anApiTracerContextobject containing information to construct attributes
-