Module: EpsagonFaradayPatch

Defined in:
lib/instrumentation/faraday.rb

Overview

Patch faraday to include middleware

Instance Method Summary collapse

Instance Method Details

#adapter(*args) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/instrumentation/faraday.rb', line 5

def adapter(*args)
  use(:epsagon_open_telemetry) unless @handlers.any? do |handler|
    handler.klass == EpsagonFaradayMiddleware
  end

  super
end