module Sentry::Net::HTTP
def record_sentry_breadcrumb(req, res)
def record_sentry_breadcrumb(req, res) return unless Sentry.initialized? && Sentry.configuration.breadcrumbs_logger.include?(:http_logger) request_info = extract_request_info(req) crumb = Sentry::Breadcrumb.new( level: :info, category: BREADCRUMB_CATEGORY, type: :info, data: { status: res.code.to_i, **request_info } ) Sentry.add_breadcrumb(crumb) end