Class: Gruf::Newrelic::ClientInterceptor
- Inherits:
-
Interceptors::ClientInterceptor
- Object
- Interceptors::ClientInterceptor
- Gruf::Newrelic::ClientInterceptor
- Defined in:
- lib/gruf/newrelic/client_interceptor.rb
Overview
New Relic transaction tracing for Gruf endpoints
Instance Method Summary collapse
Instance Method Details
#call(request_context:) ⇒ Object
25 26 27 28 29 30 31 32 |
# File 'lib/gruf/newrelic/client_interceptor.rb', line 25 def call(request_context:) = request_context. payload = ::NewRelic::Agent::DistributedTracing.create_distributed_trace_payload [NEWRELIC_TRACE_HEADER] = payload.http_safe if payload yield end |