Skip to content

Commit

Permalink
better debug message in curl backend
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Feb 23, 2024
1 parent 9e2fc94 commit 7fa4580
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/client-ocurl/opentelemetry_client_ocurl.ml
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,9 @@ end = struct
(* TODO: log error _via_ otel? *)
Atomic.incr n_errors;

Printf.eprintf "opentelemetry: export failed:\n %s\n curl code: %s\n%!"
msg (Curl.strerror code);
Printf.eprintf
"opentelemetry: export failed:\n %s\n curl code: %s\nurl: %s\n%!" msg
(Curl.strerror code) url;

(* avoid crazy error loop *)
Thread.delay 3.
Expand Down

0 comments on commit 7fa4580

Please sign in to comment.