lib/sentry/client.rb in sentry-ruby-5.15.2 vs lib/sentry/client.rb in sentry-ruby-5.16.0
- old
+ new
@@ -55,11 +55,11 @@
event_type = event.is_a?(Event) ? event.type : event["type"]
event = scope.apply_to_event(event, hint)
if event.nil?
- log_info("Discarded event because one of the event processors returned nil")
+ log_debug("Discarded event because one of the event processors returned nil")
transport.record_lost_event(:event_processor, event_type)
return
end
if async_block = configuration.async
@@ -154,35 +154,31 @@
if event_type != TransactionEvent::TYPE && configuration.before_send
event = configuration.before_send.call(event, hint)
if event.nil?
- log_info("Discarded event because before_send returned nil")
+ log_debug("Discarded event because before_send returned nil")
transport.record_lost_event(:before_send, 'event')
return
end
end
if event_type == TransactionEvent::TYPE && configuration.before_send_transaction
event = configuration.before_send_transaction.call(event, hint)
if event.nil?
- log_info("Discarded event because before_send_transaction returned nil")
+ log_debug("Discarded event because before_send_transaction returned nil")
transport.record_lost_event(:before_send, 'transaction')
return
end
end
transport.send_event(event)
spotlight_transport&.send_event(event)
event
rescue => e
- loggable_event_type = event_type.capitalize
- log_error("#{loggable_event_type} sending failed", e, debug: configuration.debug)
-
- event_info = Event.get_log_message(event.to_hash)
- log_info("Unreported #{loggable_event_type}: #{event_info}")
+ log_error("Event sending failed", e, debug: configuration.debug)
transport.record_lost_event(:network_error, event_type)
raise
end
# @deprecated use Sentry.get_traceparent instead.