This commit is contained in:
Simon Cruanes 2024-09-20 09:22:13 -04:00
parent 242d304639
commit 7629e419c8
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
9 changed files with 62 additions and 25 deletions

View file

@ -14,7 +14,7 @@ protoc-gen:
FORCE_GENPROTO=true @dune build @lint FORCE_GENPROTO=true @dune build @lint
format: format:
@dune build @fmt @dune build @fmt --auto-promote
WATCH ?= @all WATCH ?= @all
watch: watch:

9
dune
View file

@ -1,4 +1,9 @@
(env (env
(_ (_
(flags :standard -warn-error -a+8 -w +a-4-30-40-41-42-44-48-70 (flags
-strict-sequence))) :standard
-warn-error
-a+8
-w
+a-4-30-40-41-42-44-48-70
-strict-sequence)))

View file

@ -4,8 +4,13 @@
(synopsis (synopsis
"Abstraction over thread-local storage and fiber-local storage mechanisms") "Abstraction over thread-local storage and fiber-local storage mechanisms")
(private_modules hmap_key_) (private_modules hmap_key_)
(libraries thread-local-storage threads atomic (libraries
thread-local-storage
threads
atomic
opentelemetry.ambient-context.types opentelemetry.ambient-context.types
(select hmap_key_.ml from (select
(rcontext hmap -> hmap_key_.rcontext.ml) hmap_key_.ml
(-> hmap_key_.new.ml)))) from
(rcontext hmap -> hmap_key_.rcontext.ml)
(-> hmap_key_.new.ml))))

View file

@ -51,13 +51,13 @@ let () =
let version = Scanf.sscanf Sys.ocaml_version "%d.%d.%s" (fun x y _ -> x, y) in let version = Scanf.sscanf Sys.ocaml_version "%d.%d.%s" (fun x y _ -> x, y) in
write_file "atomic.ml" write_file "atomic.ml"
(if version >= (4, 12) then (if version >= (4, 12) then
atomic_after_412 atomic_after_412
else else
atomic_before_412); atomic_before_412);
copy_file copy_file
(if version >= (4, 12) then (if version >= (4, 12) then
"atomic.post412.mli" "atomic.post412.mli"
else else
"atomic.pre412.mli") "atomic.pre412.mli")
"atomic.mli"; "atomic.mli";
() ()

View file

@ -4,5 +4,11 @@
(synopsis "Opentelemetry collector using cohttp+lwt+unix") (synopsis "Opentelemetry collector using cohttp+lwt+unix")
(preprocess (preprocess
(pps lwt_ppx)) (pps lwt_ppx))
(libraries opentelemetry lwt cohttp-lwt cohttp-lwt-unix pbrt mtime (libraries
mtime.clock.os)) opentelemetry
lwt
cohttp-lwt
cohttp-lwt-unix
pbrt
mtime
mtime.clock.os))

View file

@ -1,5 +1,13 @@
(library (library
(name opentelemetry_client_ocurl) (name opentelemetry_client_ocurl)
(public_name opentelemetry-client-ocurl) (public_name opentelemetry-client-ocurl)
(libraries opentelemetry opentelemetry.atomic curl pbrt threads mtime (libraries
mtime.clock.os ezcurl ezcurl.core)) opentelemetry
opentelemetry.atomic
curl
pbrt
threads
mtime
mtime.clock.os
ezcurl
ezcurl.core))

View file

@ -2,6 +2,13 @@
(name opentelemetry) (name opentelemetry)
(synopsis "API for opentelemetry instrumentation") (synopsis "API for opentelemetry instrumentation")
(flags :standard -warn-error -a+8) (flags :standard -warn-error -a+8)
(libraries opentelemetry.proto opentelemetry.ambient-context ptime ptime.clock.os pbrt threads (libraries
opentelemetry.atomic hmap) opentelemetry.proto
opentelemetry.ambient-context
ptime
ptime.clock.os
pbrt
threads
opentelemetry.atomic
hmap)
(public_name opentelemetry)) (public_name opentelemetry))

View file

@ -8,11 +8,18 @@
(modules emit1_cohttp) (modules emit1_cohttp)
(preprocess (preprocess
(pps lwt_ppx)) (pps lwt_ppx))
(libraries unix opentelemetry opentelemetry-lwt (libraries
opentelemetry-client-cohttp-lwt lwt.unix)) unix
opentelemetry
opentelemetry-lwt
opentelemetry-client-cohttp-lwt
lwt.unix))
(executable (executable
(name cohttp_client) (name cohttp_client)
(modules cohttp_client) (modules cohttp_client)
(libraries cohttp-lwt-unix opentelemetry opentelemetry-client-cohttp-lwt (libraries
opentelemetry-cohttp-lwt)) cohttp-lwt-unix
opentelemetry
opentelemetry-client-cohttp-lwt
opentelemetry-cohttp-lwt))

View file

@ -1,5 +1,4 @@
(tests (tests
(names test_trace_context ) (names test_trace_context)
(package opentelemetry) (package opentelemetry)
(libraries opentelemetry)) (libraries opentelemetry))