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) int
callEnded
private io.opentelemetry.api.trace.Span
clientSpan
private java.lang.String
fullMethodName
-
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) void
callEnded(io.grpc.Status status)
Record a finished call and mark the current time as the end time.io.grpc.ClientStreamTracer
newClientStreamTracer(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:
newClientStreamTracer
in 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.
-
-