Module: Labkit::Tracing::Redis::RedisInterceptor

Defined in:
lib/labkit/tracing/redis/redis_interceptor.rb

Overview

RedisInterceptor is an interceptor for Redis to add distributed tracing. It should be installed using the ‘Labkit::Tracing.instrument` method

Instance Method Summary collapse

Instance Method Details

#call(command) ⇒ Object



11
12
13
14
15
16
# File 'lib/labkit/tracing/redis/redis_interceptor.rb', line 11

def call(command)
  RedisInterceptorHelper.call_with_tracing(command, self) do
    # Note: when used without any arguments super uses the arguments given to the subclass method.
    super
  end
end

#call_pipeline(pipeline) ⇒ Object



18
19
20
21
22
23
# File 'lib/labkit/tracing/redis/redis_interceptor.rb', line 18

def call_pipeline(pipeline)
  RedisInterceptorHelper.call_pipeline_with_tracing(pipeline, self) do
    # Note: when used without any arguments super uses the arguments given to the subclass method.
    super
  end
end