Sha256: 9a7e2877617e29757422101b6fdd703dd67bed51f01b9876ef0a6c4e8e7feed1
Contents?: true
Size: 692 Bytes
Versions: 18
Compression:
Stored size: 692 Bytes
Contents
# frozen_string_literal: true module Datadog module Tracing module Contrib module Faraday # Handles installation of our middleware if the user has *not* # already explicitly configured our middleware for this correction. # # Wraps Faraday::Connection#initialize: # https://github.com/lostisland/faraday/blob/ff9dc1d1219a1bbdba95a9a4cf5d135b97247ee2/lib/faraday/connection.rb#L62-L92 module Connection def initialize(*args, &block) super.tap do use(:datadog_tracing) unless builder.handlers.any? { |h| h.klass == Middleware } end end end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems