Skip to content

Commit 34034e6

Browse files
committed
[ruby] Re-raise exception on OTel metrics flush failure
1 parent 10bb760 commit 34034e6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

utils/build/docker/ruby/rails72/app/controllers/internal_controller.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ def flush
4949
end
5050
end
5151
rescue => e
52-
Rails.logger.warn("Failed to flush OTel metrics: #{e.class}: #{e}")
52+
Rails.logger.error("Failed to flush OTel metrics: #{e.class}: #{e}\n#{e.backtrace.join("\n")}")
53+
raise
5354
end
5455

5556
render plain: 'OK'

0 commit comments

Comments
 (0)