Sha256: 40e69d523809fbfaa39cc438ae1e7207157bc357724246ea14ac57ca182b6afa

Contents?: true

Size: 640 Bytes

Versions: 5

Compression:

Stored size: 640 Bytes

Contents

# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
# frozen_string_literal: true

module NewRelic::Agent::Instrumentation
  module RedisClient
    module Middleware
      # This module is used to instrument Redis 5.x+
      #
      # It only instruments call_pipelined because connect and call are accessed
      # too late in the stack to capture all errors
      include NewRelic::Agent::Instrumentation::Redis

      def call_pipelined(*args, &block)
        call_pipelined_with_tracing(args[0]) { super }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
newrelic_rpm-9.16.0 lib/new_relic/agent/instrumentation/redis/middleware.rb
newrelic_rpm-9.15.0 lib/new_relic/agent/instrumentation/redis/middleware.rb
newrelic_rpm-9.14.0 lib/new_relic/agent/instrumentation/redis/middleware.rb
newrelic_rpm-9.13.0 lib/new_relic/agent/instrumentation/redis/middleware.rb
newrelic_rpm-9.12.0 lib/new_relic/agent/instrumentation/redis/middleware.rb