Module: Datadog::Tracing::Contrib::Faraday::RackBuilder

Defined in:
lib/datadog/tracing/contrib/faraday/rack_builder.rb

Overview

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: github.com/lostisland/faraday/commit/77d7546d6d626b91086f427c56bc2cdd951353b3

Instance Method Summary collapse

Instance Method Details

#adapter(*args) ⇒ Object



13
14
15
16
17
# File 'lib/datadog/tracing/contrib/faraday/rack_builder.rb', line 13

def adapter(*args)
  use(:datadog_tracing) unless @handlers.any? { |h| h.klass == Middleware }

  super
end