mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-09 12:23:32 -04:00
Used default_url
This commit is contained in:
parent
a95b787a7b
commit
b6448b330d
2 changed files with 8 additions and 2 deletions
|
|
@ -20,8 +20,9 @@ let run () =
|
||||||
in
|
in
|
||||||
let* () = Lwt_unix.sleep !sleep_outer in
|
let* () = Lwt_unix.sleep !sleep_outer in
|
||||||
let module C = (val mk_client ~scope) in
|
let module C = (val mk_client ~scope) in
|
||||||
|
(* Using the same default server O *)
|
||||||
let* _res, body =
|
let* _res, body =
|
||||||
C.get (Uri.of_string "https://enec1hql02hz.x.pipedream.net")
|
C.get (Uri.of_string Opentelemetry_client.Config.default_url)
|
||||||
in
|
in
|
||||||
let* () = Cohttp_lwt.Body.drain_body body in
|
let* () = Cohttp_lwt.Body.drain_body body in
|
||||||
go ()
|
go ()
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,11 @@
|
||||||
(executable
|
(executable
|
||||||
(name emit1)
|
(name emit1)
|
||||||
(modules emit1)
|
(modules emit1)
|
||||||
(libraries unix opentelemetry opentelemetry-client-ocurl))
|
(libraries
|
||||||
|
unix
|
||||||
|
opentelemetry
|
||||||
|
opentelemetry.client
|
||||||
|
opentelemetry-client-ocurl))
|
||||||
|
|
||||||
(executable
|
(executable
|
||||||
(name emit1_cohttp)
|
(name emit1_cohttp)
|
||||||
|
|
@ -12,6 +16,7 @@
|
||||||
unix
|
unix
|
||||||
opentelemetry
|
opentelemetry
|
||||||
opentelemetry-lwt
|
opentelemetry-lwt
|
||||||
|
opentelemetry.client
|
||||||
opentelemetry-client-cohttp-lwt
|
opentelemetry-client-cohttp-lwt
|
||||||
lwt.unix))
|
lwt.unix))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue