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.12.0 lib/labkit/tracing/redis.rb
gitlab-labkit-0.11.0 lib/labkit/tracing/redis.rb
gitlab-labkit-0.10.1 lib/labkit/tracing/redis.rb
gitlab-labkit-0.10.0 lib/labkit/tracing/redis.rb
gitlab-labkit-0.9.1 lib/labkit/tracing/redis.rb
gitlab-labkit-0.9.0 lib/labkit/tracing/redis.rb
gitlab-labkit-0.8.0 lib/labkit/tracing/redis.rb
gitlab-labkit-0.7.0 lib/labkit/tracing/redis.rb
gitlab-labkit-0.6.0 lib/labkit/tracing/redis.rb
gitlab-labkit-0.5.2 lib/labkit/tracing/redis.rb
gitlab-labkit-0.5.1 lib/labkit/tracing/redis.rb
gitlab-labkit-0.5.0 lib/labkit/tracing/redis.rb