From b814525bbb09bbbc3992e843140ba2bb747e7de6 Mon Sep 17 00:00:00 2001 From: Liz S <79491479+converliz@users.noreply.github.com> Date: Fri, 18 Sep 2026 17:23:07 -0400 Subject: [PATCH 1/2] Tag error_class on timed_operation failures Corrected the indentation of the rescue block for better readability and consistency. --- lib/entitlements.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/entitlements.rb b/lib/entitlements.rb index 0239733..ece11f5 100644 --- a/lib/entitlements.rb +++ b/lib/entitlements.rb @@ -401,6 +401,9 @@ def self.timed_operation(phase:, provider: nil, target: nil, span: "leaf", concu result = yield tags[1] = "status:success" result + rescue => e + tags << "error_class:#{e.class.name}" + raise end end From 3be7a2228d4f97b6dfa337951d37124ec7f69c31 Mon Sep 17 00:00:00 2001 From: Liz S <79491479+converliz@users.noreply.github.com> Date: Thu, 24 Sep 2026 19:00:28 -0400 Subject: [PATCH 2/2] Update spec for error_class tag --- spec/unit/entitlements_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/unit/entitlements_spec.rb b/spec/unit/entitlements_spec.rb index 390608f..5811c4b 100644 --- a/spec/unit/entitlements_spec.rb +++ b/spec/unit/entitlements_spec.rb @@ -274,7 +274,8 @@ "phase:audit_setup", "status:error", "span:leaf", - "concurrent:false" + "concurrent:false", + "error_class:RuntimeError" ] ) end