Module: Datadog::Tracing::Contrib::Redis::Instrumentation::InstanceMethods

Defined in:
lib/datadog/tracing/contrib/redis/instrumentation.rb

Overview

InstanceMethods - implementing instrumentation

Instance Method Summary collapse

Instance Method Details

#call(*args, &block) ⇒ Object



20
21
22
# File 'lib/datadog/tracing/contrib/redis/instrumentation.rb', line 20

def call(*args, &block)
  TraceMiddleware.call(self, args[0], service_name, command_args?) { super }
end

#call_pipeline(*args, &block) ⇒ Object



24
25
26
# File 'lib/datadog/tracing/contrib/redis/instrumentation.rb', line 24

def call_pipeline(*args, &block)
  TraceMiddleware.call_pipelined(self, args[0].commands, service_name, command_args?) { super }
end