mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -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
|
||||
let* () = Lwt_unix.sleep !sleep_outer in
|
||||
let module C = (val mk_client ~scope) in
|
||||
(* Using the same default server O *)
|
||||
let* _res, body =
|
||||
C.get (Uri.of_string "https://enec1hql02hz.x.pipedream.net")
|
||||
C.get (Uri.of_string Opentelemetry_client.Config.default_url)
|
||||
in
|
||||
let* () = Cohttp_lwt.Body.drain_body body in
|
||||
go ()
|
||||
|
|
|
|||
|
|
@ -1,7 +1,11 @@
|
|||
(executable
|
||||
(name emit1)
|
||||
(modules emit1)
|
||||
(libraries unix opentelemetry opentelemetry-client-ocurl))
|
||||
(libraries
|
||||
unix
|
||||
opentelemetry
|
||||
opentelemetry.client
|
||||
opentelemetry-client-ocurl))
|
||||
|
||||
(executable
|
||||
(name emit1_cohttp)
|
||||
|
|
@ -12,6 +16,7 @@
|
|||
unix
|
||||
opentelemetry
|
||||
opentelemetry-lwt
|
||||
opentelemetry.client
|
||||
opentelemetry-client-cohttp-lwt
|
||||
lwt.unix))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue