mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-09 12:23:32 -04:00
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.`.
This commit is contained in:
parent
07513133ae
commit
46d1289d95
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue