Class RpcClientMetrics

    • Method Detail

      • start

        public io.opentelemetry.context.Context start​(io.opentelemetry.context.Context context,
                                                      io.opentelemetry.api.common.Attributes startAttributes,
                                                      long startNanos)
        Description copied from interface: RequestListener
        Listener method that is called at the start of a request. If any state needs to be kept between the start and end of the request, e.g., an in-progress span, it should be added to the passed in Context and returned.
        Specified by:
        start in interface RequestListener
        startNanos - The nanosecond timestamp marking the start of the request. Can be used to compute the duration of the entire operation.
      • end

        public void end​(io.opentelemetry.context.Context context,
                        io.opentelemetry.api.common.Attributes endAttributes,
                        long endNanos)
        Description copied from interface: RequestListener
        Listener method that is called at the end of a request.
        Specified by:
        end in interface RequestListener
        endNanos - The nanosecond timestamp marking the end of the request. Can be used to compute the duration of the entire operation.