Package io.grpc.opentelemetry
Class OpenTelemetryTracingModule.CallAttemptsTracerFactory
- java.lang.Object
-
- io.grpc.ClientStreamTracer.Factory
-
- io.grpc.opentelemetry.OpenTelemetryTracingModule.CallAttemptsTracerFactory
-
- Enclosing class:
- OpenTelemetryTracingModule
final class OpenTelemetryTracingModule.CallAttemptsTracerFactory extends io.grpc.ClientStreamTracer.Factory
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intcallEndedprivate io.opentelemetry.api.trace.SpanclientSpanprivate java.lang.StringfullMethodName
-
Constructor Summary
Constructors Constructor Description CallAttemptsTracerFactory(io.opentelemetry.api.trace.Span clientSpan, io.grpc.MethodDescriptor<?,?> method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidcallEnded(io.grpc.Status status)Record a finished call and mark the current time as the end time.io.grpc.ClientStreamTracernewClientStreamTracer(io.grpc.ClientStreamTracer.StreamInfo info, io.grpc.Metadata headers)
-
-
-
Method Detail
-
newClientStreamTracer
public io.grpc.ClientStreamTracer newClientStreamTracer(io.grpc.ClientStreamTracer.StreamInfo info, io.grpc.Metadata headers)- Overrides:
newClientStreamTracerin classio.grpc.ClientStreamTracer.Factory
-
callEnded
void callEnded(io.grpc.Status status)
Record a finished call and mark the current time as the end time.Can be called from any thread without synchronization. Calling it the second time or more is a no-op.
-
-