lib/gruf/prometheus/client/interceptor.rb
def call(request_context:, &block)
          result = ::Gruf::Interceptors::Timer.time(&block)

          send_metrics(request_context: request_context, result: result)

          raise result.message unless result.successful?

          result.message
        end
##
# Intercept the call and send metrics
#
Intercept the call and send metrics
Intercept the call and send metrics
def call(request_context:, &block)
          result = ::Gruf::Interceptors::Timer.time(&block)
          send_metrics(request_context: request_context, result: result)
          raise result.message unless result.successful?
          result.message
        end
def call ( request_context : , & block ) result = :: Gruf :: Interceptors :: Timer . time ( & block ) send_metrics ( request_context : request_context , result : result ) raise result . message unless result . successful? result . message end
Intercept the call and send metrics
Intercept the call and send metrics
request_context
block