lib/deimos/base_consumer.rb in deimos-ruby-1.6.3 vs lib/deimos/base_consumer.rb in deimos-ruby-1.6.4
- old
+ new
@@ -40,19 +40,15 @@
end
end
protected
- # @param payload [Hash|String]
- # @param metadata [Hash]
- def _with_error_span(payload, metadata)
+ def _with_span
@span = Deimos.config.tracer&.start(
'deimos-consumer',
resource: self.class.name.gsub('::', '-')
)
yield
- rescue StandardError => e
- _handle_error(e, payload, metadata)
ensure
Deimos.config.tracer&.finish(@span)
end
def _report_time_delayed(payload, metadata)