fix: move to ezcurl 0.3

This commit is contained in:
Simon Cruanes 2026-02-26 10:16:24 -05:00
parent 731cc79fcb
commit 4edac68be5
3 changed files with 10 additions and 4 deletions

View file

@ -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"))

View file

@ -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}
]

View file

@ -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