mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04:00
9 lines
324 B
OCaml
9 lines
324 B
OCaml
let url = "http://localhost:3000"
|
|
|
|
let cohttp () =
|
|
let config = Opentelemetry_client_cohttp_lwt.Config.make ~url () in
|
|
Opentelemetry_client_cohttp_lwt.with_setup ~config () @@ fun () ->
|
|
let url = Opentelemetry_client_cohttp_lwt.get_url () in
|
|
print_endline @@ Printf.sprintf "cohttp url = %s" url
|
|
|
|
let () = cohttp ()
|