ocaml-opentelemetry/tests/bin/dune
ajbt200128 fbb280974a feat: add Logs integration
This PR upstreams the logs integration I wrote for Semgrep, and that
we've been using succesfully for months!
2025-07-31 14:25:52 -07:00

63 lines
1,013 B
Text

(executable
(name emit1)
(modules emit1)
(libraries
unix
opentelemetry
opentelemetry.client
opentelemetry-client-ocurl))
(executable
(name emit1_cohttp)
(modules emit1_cohttp)
(preprocess
(pps lwt_ppx))
(libraries
unix
opentelemetry
opentelemetry-lwt
opentelemetry.client
opentelemetry-client-cohttp-lwt
lwt.unix))
(executable
(name emit1_eio)
(modules emit1_eio)
(preprocess
(pps lwt_ppx))
(enabled_if
(>= %{ocaml_version} 5.0))
(libraries
unix
eio_main
logs
logs.fmt
logs.threaded
opentelemetry
opentelemetry.client
opentelemetry-client-cohttp-eio))
(executable
(name emit_logs_cohttp)
(modules emit_logs_cohttp)
(preprocess
(pps lwt_ppx))
(libraries
cohttp-lwt-unix
opentelemetry
opentelemetry-client-cohttp-lwt
opentelemetry-cohttp-lwt
opentelemetry-logs
logs
))
(executable
(name cohttp_client)
(modules cohttp_client)
(libraries
cohttp-lwt-unix
opentelemetry
opentelemetry-client-cohttp-lwt
opentelemetry-cohttp-lwt))