Sha256: 302efd7cdb5e62d225f590f105b01ba79859a7c3aa6db85b8a894864665b4907

Contents?: true

Size: 315 Bytes

Versions: 6

Compression:

Stored size: 315 Bytes

Contents

# frozen_string_literal: true

Sentry.register_patch(:excon) do
  if defined?(::Excon)
    require "sentry/excon/middleware"
    if Excon.defaults[:middlewares]
      Excon.defaults[:middlewares] << Sentry::Excon::Middleware unless Excon.defaults[:middlewares].include?(Sentry::Excon::Middleware)
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
sentry-ruby-core-5.22.2 lib/sentry/excon.rb
sentry-ruby-5.22.2 lib/sentry/excon.rb
sentry-ruby-core-5.22.1 lib/sentry/excon.rb
sentry-ruby-5.22.1 lib/sentry/excon.rb
sentry-ruby-5.22.0 lib/sentry/excon.rb
sentry-ruby-core-5.22.0 lib/sentry/excon.rb