Skip to content

Commit

Permalink
Update tracer_middleware.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
arielvalentin authored Sep 26, 2023
1 parent 504ff2d commit 240d9ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def call(worker_instance, queue, sqs_msg, _body)
yield
rescue Exception => e # rubocop:disable Lint/RescueException
span.record_exception(e)
span&.status = OpenTelemetry::Trace::Status.error("Unhandled exception of type: #{e.class}")
span.status = OpenTelemetry::Trace::Status.error("Unhandled exception of type: #{e.class}")
raise e
ensure
span&.finish
Expand Down

0 comments on commit 240d9ae

Please sign in to comment.