Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • callEnded

        volatile int callEnded
      • clientSpan

        private final io.opentelemetry.api.trace.Span clientSpan
      • fullMethodName

        private final java.lang.String fullMethodName
    • Constructor Detail

      • CallAttemptsTracerFactory

        CallAttemptsTracerFactory​(io.opentelemetry.api.trace.Span clientSpan,
                                  io.grpc.MethodDescriptor<?,​?> method)
    • Method Detail

      • newClientStreamTracer

        public io.grpc.ClientStreamTracer newClientStreamTracer​(io.grpc.ClientStreamTracer.StreamInfo info,
                                                                io.grpc.Metadata headers)
        Overrides:
        newClientStreamTracer in class io.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.