Sha256: d13b8813d251a7ce164c554d8c9407ca7d1bb6570f77d73709f657040cc6a575
Contents?: true
Size: 697 Bytes
Versions: 28
Compression:
Stored size: 697 Bytes
Contents
# frozen_string_literal: true return unless defined?(Puma::Server) module Sentry module Puma module Server PUMA_4_AND_PRIOR = Gem::Version.new(::Puma::Const::PUMA_VERSION) < Gem::Version.new("5.0.0") def lowlevel_error(e, env, status = 500) result = if PUMA_4_AND_PRIOR super(e, env) else super end begin Sentry.capture_exception(e) do |scope| scope.set_rack_env(env) end rescue # if anything happens, we don't want to break the app end result end end end end Sentry.register_patch(:puma, Sentry::Puma::Server, Puma::Server)
Version data entries
28 entries across 28 versions & 2 rubygems