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