Sha256: ed85e92e499f37168029ef38fb7e6676df7d28d3433c4c01f74545709fb263e9
Contents?: true
Size: 495 Bytes
Versions: 60
Compression:
Stored size: 495 Bytes
Contents
# (c) Copyright IBM Corp. 2021 # (c) Copyright Instana Inc. 2021 module Instana module Activators class Excon < Activator def can_instrument? defined?(::Excon) && defined?(::Excon::Middleware::Base) && ::Excon.respond_to?(:defaults) && Instana.config[:excon][:enabled] end def instrument require 'instana/instrumentation/excon' ::Excon.defaults[:middlewares].unshift(::Instana::Instrumentation::Excon) true end end end end
Version data entries
60 entries across 60 versions & 1 rubygems