Class OpenTelemetryMetricsModule.MetricsClientInterceptor

  • All Implemented Interfaces:
    io.grpc.ClientInterceptor
    Enclosing class:
    OpenTelemetryMetricsModule

    final class OpenTelemetryMetricsModule.MetricsClientInterceptor
    extends java.lang.Object
    implements io.grpc.ClientInterceptor
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.google.common.collect.ImmutableList<OpenTelemetryPlugin> plugins  
      private java.lang.String target  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <ReqT,​RespT>
      io.grpc.ClientCall<ReqT,​RespT>
      interceptCall​(io.grpc.MethodDescriptor<ReqT,​RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next)  
      • Methods inherited from class java.lang.Object

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

      • target

        private final java.lang.String target
    • Constructor Detail

      • MetricsClientInterceptor

        MetricsClientInterceptor​(java.lang.String target,
                                 com.google.common.collect.ImmutableList<OpenTelemetryPlugin> plugins)
    • Method Detail

      • interceptCall

        public <ReqT,​RespT> io.grpc.ClientCall<ReqT,​RespT> interceptCall​(io.grpc.MethodDescriptor<ReqT,​RespT> method,
                                                                                     io.grpc.CallOptions callOptions,
                                                                                     io.grpc.Channel next)
        Specified by:
        interceptCall in interface io.grpc.ClientInterceptor