Module: NewRelic::Agent::Instrumentation::RedisClient::ClusterMiddleware
- Includes:
- NewRelic::Agent::Instrumentation::Redis
- Defined in:
- lib/new_relic/agent/instrumentation/redis/cluster_middleware.rb
Constant Summary
Constants included from NewRelic::Agent::Instrumentation::Redis
NewRelic::Agent::Instrumentation::Redis::INSTRUMENTATION_NAME
Instance Method Summary collapse
-
#call(*args, &block) ⇒ Object
Until we decide to move our Redis instrumentation entirely off patches keep the middleware instrumentation for the call and connect methods limited to the redis-clustering instrumentation.
- #connect(*args, &block) ⇒ Object
Methods included from NewRelic::Agent::Instrumentation::Redis
#call_pipeline_with_tracing, #call_pipelined_with_tracing, #call_with_tracing, #connect_with_tracing
Instance Method Details
#call(*args, &block) ⇒ Object
Until we decide to move our Redis instrumentation entirely off patches keep the middleware instrumentation for the call and connect methods limited to the redis-clustering instrumentation.
Redis’s middleware option does not capture errors as high in the stack as our patches. Leaving the patches for call and connect on the main Redis gem limits the feature disparity our customers experience.
17 18 19 |
# File 'lib/new_relic/agent/instrumentation/redis/cluster_middleware.rb', line 17 def call(*args, &block) call_with_tracing(args[0]) { super } end |
#connect(*args, &block) ⇒ Object
21 22 23 |
# File 'lib/new_relic/agent/instrumentation/redis/cluster_middleware.rb', line 21 def connect(*args, &block) connect_with_tracing { super } end |