Module: Datadog::Tracing::Contrib::Faraday::Connection
- Defined in:
- lib/datadog/tracing/contrib/faraday/connection.rb
Overview
Handles installation of our middleware if the user has not already explicitly configured our middleware for this correction.
Wraps Faraday::Connection#initialize: github.com/lostisland/faraday/blob/ff9dc1d1219a1bbdba95a9a4cf5d135b97247ee2/lib/faraday/connection.rb#L62-L92
Instance Method Summary collapse
Instance Method Details
#initialize(*args, &block) ⇒ Object
13 14 15 16 17 |
# File 'lib/datadog/tracing/contrib/faraday/connection.rb', line 13 def initialize(*args, &block) super.tap do use(:ddtrace) unless builder.handlers.any? { |h| h.klass == Middleware } end end |