Skip to content

Commit

Permalink
add url to error log
Browse files Browse the repository at this point in the history
  • Loading branch information
tatchi committed Sep 18, 2024
1 parent c372c45 commit 27eada5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client-ocurl/opentelemetry_client_ocurl.ml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ end = struct
spf "(could not decode status)\nraw bytes: %s" (str_to_hex body)
in
Printf.eprintf
"opentelemetry: error while sending:\n code=%d\n %s\n%!" code body
"opentelemetry: error while sending data to %s:\n code=%d\n %s\n%!"
url code body
);
()
| exception Sys.Break ->
Expand Down

0 comments on commit 27eada5

Please sign in to comment.