From 8a6db214da6c5943148cab344a208265666aa919 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Thu, 26 Feb 2026 10:16:24 -0500 Subject: [PATCH] fix: move to ezcurl 0.3 --- dune-project | 9 +++++++-- opentelemetry-client-ocurl.opam | 2 +- src/client-ocurl/opentelemetry_client_ocurl.ml | 3 ++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/dune-project b/dune-project index 5c8b3d6f..1e773851 100644 --- a/dune-project +++ b/dune-project @@ -40,7 +40,10 @@ (>= 3.0) (< 4.0))) (ocaml-lsp-server :with-dev-setup) - (ambient-context (and (>= 0.2) (< 0.3))) + (ambient-context + (and + (>= 0.2) + (< 0.3))) (ocamlformat (and :with-dev-setup @@ -84,7 +87,9 @@ (= :version)) (odoc :with-doc) (ezcurl - (>= 0.2.3)) + (and + (>= 0.3) + (< 0.4))) ocurl (alcotest :with-test)) (synopsis "Collector client for opentelemetry, using http + ezcurl")) diff --git a/opentelemetry-client-ocurl.opam b/opentelemetry-client-ocurl.opam index de605919..a87813d2 100644 --- a/opentelemetry-client-ocurl.opam +++ b/opentelemetry-client-ocurl.opam @@ -17,7 +17,7 @@ depends: [ "mtime" {>= "1.4"} "opentelemetry" {= version} "odoc" {with-doc} - "ezcurl" {>= "0.2.3"} + "ezcurl" {>= "0.3" & < "0.4"} "ocurl" "alcotest" {with-test} ] diff --git a/src/client-ocurl/opentelemetry_client_ocurl.ml b/src/client-ocurl/opentelemetry_client_ocurl.ml index 55d4788c..41bf97b4 100644 --- a/src/client-ocurl/opentelemetry_client_ocurl.ml +++ b/src/client-ocurl/opentelemetry_client_ocurl.ml @@ -131,7 +131,8 @@ end = struct mutable send_threads: Thread.t array; (** Threads that send data via http *) } - let send_http_ ~stop ~(config : Config.t) (client : Curl.t) ~url data : unit = + let send_http_ ~stop ~(config : Config.t) (client : Ezcurl_core.t) ~url data : + unit = let@ _sc = Self_trace.with_ ~kind:Span.Span_kind_producer "otel-ocurl.send-http" in