Skip to content

Commit b814525

Browse files
authored
Tag error_class on timed_operation failures
Corrected the indentation of the rescue block for better readability and consistency.
1 parent f934a82 commit b814525

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/entitlements.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,9 @@ def self.timed_operation(phase:, provider: nil, target: nil, span: "leaf", concu
401401
result = yield
402402
tags[1] = "status:success"
403403
result
404+
rescue => e
405+
tags << "error_class:#{e.class.name}"
406+
raise
404407
end
405408
end
406409

0 commit comments

Comments
 (0)