lib/safely/services.rb in safely_block-0.4.0 vs lib/safely/services.rb in safely_block-0.4.1
- old
+ new
@@ -17,9 +17,14 @@
Bugsnag.notify(e) do |report|
report.add_tab(:info, info) if info.any?
end
end
+ if defined?(Datadog::Tracing)
+ Datadog::Tracing.active_span&.set_tags(info)
+ Datadog::Tracing.active_span&.set_error(e)
+ end
+
ExceptionNotifier.notify_exception(e, data: info) if defined?(ExceptionNotifier)
# TODO add info
Google::Cloud::ErrorReporting.report(e) if defined?(Google::Cloud::ErrorReporting)