From d6d36ee73d40a42b31fdc479bfd40151c3b971dc Mon Sep 17 00:00:00 2001 From: Corentin Leruth Date: Wed, 18 Sep 2024 16:56:51 +0200 Subject: [PATCH] add url to error log --- src/client-ocurl/opentelemetry_client_ocurl.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client-ocurl/opentelemetry_client_ocurl.ml b/src/client-ocurl/opentelemetry_client_ocurl.ml index 0cf23dea..d67be711 100644 --- a/src/client-ocurl/opentelemetry_client_ocurl.ml +++ b/src/client-ocurl/opentelemetry_client_ocurl.ml @@ -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 ->