mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-09 04:17:56 -04:00
detail
This commit is contained in:
parent
7454134762
commit
4e63b2a3a2
1 changed files with 4 additions and 1 deletions
|
|
@ -14,6 +14,9 @@ let collect () : Key_value.t list =
|
|||
(fun f ->
|
||||
match f () with
|
||||
| kvs -> acc := List.rev_append kvs !acc
|
||||
| exception _ -> ())
|
||||
| exception exn ->
|
||||
let bt = Printexc.get_raw_backtrace () in
|
||||
Printf.eprintf "opentelemetry: dynamic_enricher raised %s\n%s%!"
|
||||
(Printexc.to_string exn) (Printexc.raw_backtrace_to_string bt))
|
||||
(Alist.get enrichers_);
|
||||
!acc
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue