Sha256: 6d2b3799b74103ccdd7390593b42c7b0d46acbc10d2ad36a6bb8e9d36c56f75c

Contents?: true

Size: 528 Bytes

Versions: 30

Compression:

Stored size: 528 Bytes

Contents

module Datadog
  module Contrib
    module Faraday
      # Handles installation of our middleware if the user has *not*
      # already explicitly configured it for this correction.
      #
      # RackBuilder class was introduced in faraday 0.9.0:
      # https://github.com/lostisland/faraday/commit/77d7546d6d626b91086f427c56bc2cdd951353b3
      module RackBuilder
        def adapter(*args)
          use(:ddtrace) unless @handlers.any? { |h| h.klass == Middleware }

          super
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
ddtrace-0.51.1 lib/ddtrace/contrib/faraday/rack_builder.rb
ddtrace-0.51.0 lib/ddtrace/contrib/faraday/rack_builder.rb
ddtrace-0.50.0 lib/ddtrace/contrib/faraday/rack_builder.rb
ddtrace-0.49.0 lib/ddtrace/contrib/faraday/rack_builder.rb
ddtrace-0.48.0 lib/ddtrace/contrib/faraday/rack_builder.rb
ddtrace-0.47.0 lib/ddtrace/contrib/faraday/rack_builder.rb
ddtrace-0.46.0 lib/ddtrace/contrib/faraday/rack_builder.rb
ddtrace-0.45.0 lib/ddtrace/contrib/faraday/rack_builder.rb
ddtrace-0.44.0 lib/ddtrace/contrib/faraday/rack_builder.rb
ddtrace-0.43.0 lib/ddtrace/contrib/faraday/rack_builder.rb
ddtrace-0.42.0 lib/ddtrace/contrib/faraday/rack_builder.rb
ddtrace-0.41.0 lib/ddtrace/contrib/faraday/rack_builder.rb
ls-trace-0.2.0 lib/ddtrace/contrib/faraday/rack_builder.rb
ddtrace-0.40.0 lib/ddtrace/contrib/faraday/rack_builder.rb
ddtrace-0.39.0 lib/ddtrace/contrib/faraday/rack_builder.rb
ddtrace-0.38.0 lib/ddtrace/contrib/faraday/rack_builder.rb
ddtrace-0.37.0 lib/ddtrace/contrib/faraday/rack_builder.rb
ddtrace-0.36.0 lib/ddtrace/contrib/faraday/rack_builder.rb
ls-trace-0.1.2 lib/ddtrace/contrib/faraday/rack_builder.rb
ddtrace-0.35.2 lib/ddtrace/contrib/faraday/rack_builder.rb