Sha256: bca3bbfd15d5c384d7786cb35d84fab47d9780e030d6d83a20b010e022b55570

Contents?: true

Size: 469 Bytes

Versions: 52

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true

require "redis"

module Labkit
  module Tracing
    # The Redis interceptor will intercept all calls to Redis and instrument them for distributed tracing
    module Redis
      autoload :RedisInterceptor, "labkit/tracing/redis/redis_interceptor"
      autoload :RedisInterceptorHelper, "labkit/tracing/redis/redis_interceptor_helper"

      def self.instrument
        ::Redis::Client.prepend RedisInterceptor
      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.rb
gitlab-labkit-0.36.0 lib/labkit/tracing/redis.rb
gitlab-labkit-0.35.1 lib/labkit/tracing/redis.rb
gitlab-labkit-0.35.0 lib/labkit/tracing/redis.rb
gitlab-labkit-0.34.0 lib/labkit/tracing/redis.rb
gitlab-labkit-0.33.0 lib/labkit/tracing/redis.rb
gitlab-labkit-0.32.0 lib/labkit/tracing/redis.rb
gitlab-labkit-0.31.1 lib/labkit/tracing/redis.rb
gitlab-labkit-0.31.0 lib/labkit/tracing/redis.rb
gitlab-labkit-0.30.1 lib/labkit/tracing/redis.rb
gitlab-labkit-0.30.0 lib/labkit/tracing/redis.rb
gitlab-labkit-0.29.0 lib/labkit/tracing/redis.rb
gitlab-labkit-0.28.0 lib/labkit/tracing/redis.rb
gitlab-labkit-0.27.0 lib/labkit/tracing/redis.rb
gitlab-labkit-0.26.0 lib/labkit/tracing/redis.rb
gitlab-labkit-0.25.0 lib/labkit/tracing/redis.rb
gitlab-labkit-0.24.0 lib/labkit/tracing/redis.rb
gitlab-labkit-0.23.0 lib/labkit/tracing/redis.rb
gitlab-labkit-0.22.0 lib/labkit/tracing/redis.rb
gitlab-labkit-0.21.3 lib/labkit/tracing/redis.rb