Sha256: a0eef3af9a7bfddf243772629b8448d32f56cf980189c095759ee3b3b273662a
Contents?: true
Size: 798 Bytes
Versions: 6
Compression:
Stored size: 798 Bytes
Contents
# frozen_string_literal: true # Copyright The OpenTelemetry Authors # # SPDX-License-Identifier: Apache-2.0 module OpenTelemetry module Instrumentation module Excon # The Instrumentation class contains logic to detect and install the Excon # instrumentation class Instrumentation < OpenTelemetry::Instrumentation::Base install do |_config| require_dependencies add_middleware end present do defined?(::Excon) end private def require_dependencies require_relative 'middlewares/tracer_middleware' end def add_middleware ::Excon.defaults[:middlewares] = Middlewares::TracerMiddleware.around_default_stack end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems