From 46d1289d953c59a7e4d2d8727a5e868559457bea Mon Sep 17 00:00:00 2001 From: ajbt200128 Date: Wed, 16 Jul 2025 13:58:31 -0700 Subject: [PATCH] fix: opentelemetry exception attr spec this brings the exception attributes in line with the spec https://opentelemetry.io/docs/specs/semconv/exceptions/exceptions-spans/. It seems we were missing the preceding `exception.`. --- src/core/opentelemetry.ml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/opentelemetry.ml b/src/core/opentelemetry.ml index 350568d8..c4ad4146 100644 --- a/src/core/opentelemetry.ml +++ b/src/core/opentelemetry.ml @@ -1069,9 +1069,9 @@ end = struct Event.make "exception" ~attrs: [ - "message", `String (Printexc.to_string exn); - "type", `String (Printexc.exn_slot_name exn); - "stacktrace", `String (Printexc.raw_backtrace_to_string bt); + "exception.message", `String (Printexc.to_string exn); + "exception.type", `String (Printexc.exn_slot_name exn); + "exception.stacktrace", `String (Printexc.raw_backtrace_to_string bt); ] in scope.items <- Ev (ev, scope.items)