Sha256: 2bae9fa358d96e7aee692878bb9cb2784ee2900e3cc73c0731617292f1864f96

Contents?: true

Size: 825 Bytes

Versions: 52

Compression:

Stored size: 825 Bytes

Contents

# frozen_string_literal: true

require "redis"

module Labkit
  module Tracing
    module Redis
      # RedisInterceptor is an interceptor for Redis to add distributed tracing.
      # It should be installed using the `Labkit::Tracing.instrument` method
      module RedisInterceptor
        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

        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
      end
    end
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
gitlab-labkit-0.36.1 lib/labkit/tracing/redis/redis_interceptor.rb
gitlab-labkit-0.36.0 lib/labkit/tracing/redis/redis_interceptor.rb
gitlab-labkit-0.35.1 lib/labkit/tracing/redis/redis_interceptor.rb
gitlab-labkit-0.35.0 lib/labkit/tracing/redis/redis_interceptor.rb
gitlab-labkit-0.34.0 lib/labkit/tracing/redis/redis_interceptor.rb
gitlab-labkit-0.33.0 lib/labkit/tracing/redis/redis_interceptor.rb
gitlab-labkit-0.32.0 lib/labkit/tracing/redis/redis_interceptor.rb
gitlab-labkit-0.31.1 lib/labkit/tracing/redis/redis_interceptor.rb
gitlab-labkit-0.31.0 lib/labkit/tracing/redis/redis_interceptor.rb
gitlab-labkit-0.30.1 lib/labkit/tracing/redis/redis_interceptor.rb
gitlab-labkit-0.30.0 lib/labkit/tracing/redis/redis_interceptor.rb
gitlab-labkit-0.29.0 lib/labkit/tracing/redis/redis_interceptor.rb
gitlab-labkit-0.28.0 lib/labkit/tracing/redis/redis_interceptor.rb
gitlab-labkit-0.27.0 lib/labkit/tracing/redis/redis_interceptor.rb
gitlab-labkit-0.26.0 lib/labkit/tracing/redis/redis_interceptor.rb
gitlab-labkit-0.25.0 lib/labkit/tracing/redis/redis_interceptor.rb
gitlab-labkit-0.24.0 lib/labkit/tracing/redis/redis_interceptor.rb
gitlab-labkit-0.23.0 lib/labkit/tracing/redis/redis_interceptor.rb
gitlab-labkit-0.22.0 lib/labkit/tracing/redis/redis_interceptor.rb
gitlab-labkit-0.21.3 lib/labkit/tracing/redis/redis_interceptor.rb