mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04:00
fix: move to ezcurl 0.3
This commit is contained in:
parent
731cc79fcb
commit
4edac68be5
3 changed files with 10 additions and 4 deletions
|
|
@ -40,7 +40,10 @@
|
||||||
(>= 3.0)
|
(>= 3.0)
|
||||||
(< 4.0)))
|
(< 4.0)))
|
||||||
(ocaml-lsp-server :with-dev-setup)
|
(ocaml-lsp-server :with-dev-setup)
|
||||||
(ambient-context (and (>= 0.2) (< 0.3)))
|
(ambient-context
|
||||||
|
(and
|
||||||
|
(>= 0.2)
|
||||||
|
(< 0.3)))
|
||||||
(ocamlformat
|
(ocamlformat
|
||||||
(and
|
(and
|
||||||
:with-dev-setup
|
:with-dev-setup
|
||||||
|
|
@ -84,7 +87,9 @@
|
||||||
(= :version))
|
(= :version))
|
||||||
(odoc :with-doc)
|
(odoc :with-doc)
|
||||||
(ezcurl
|
(ezcurl
|
||||||
(>= 0.2.3))
|
(and
|
||||||
|
(>= 0.3)
|
||||||
|
(< 0.4)))
|
||||||
ocurl
|
ocurl
|
||||||
(alcotest :with-test))
|
(alcotest :with-test))
|
||||||
(synopsis "Collector client for opentelemetry, using http + ezcurl"))
|
(synopsis "Collector client for opentelemetry, using http + ezcurl"))
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ depends: [
|
||||||
"mtime" {>= "1.4"}
|
"mtime" {>= "1.4"}
|
||||||
"opentelemetry" {= version}
|
"opentelemetry" {= version}
|
||||||
"odoc" {with-doc}
|
"odoc" {with-doc}
|
||||||
"ezcurl" {>= "0.2.3"}
|
"ezcurl" {>= "0.3" & < "0.4"}
|
||||||
"ocurl"
|
"ocurl"
|
||||||
"alcotest" {with-test}
|
"alcotest" {with-test}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,8 @@ end = struct
|
||||||
mutable send_threads: Thread.t array; (** Threads that send data via http *)
|
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 =
|
let@ _sc =
|
||||||
Self_trace.with_ ~kind:Span.Span_kind_producer "otel-ocurl.send-http"
|
Self_trace.with_ ~kind:Span.Span_kind_producer "otel-ocurl.send-http"
|
||||||
in
|
in
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue