Merge pull request #109 from tatchi/fmt

fmt
This commit is contained in:
Simon Cruanes 2025-11-10 12:49:33 -05:00 committed by GitHub
commit 507bf25dcf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 22 additions and 24 deletions

View file

@ -47,6 +47,6 @@ val pop_if_ready : ?force:bool -> now:Mtime.t -> 'a t -> 'a list option
batches before exit or because the user asks for it *) batches before exit or because the user asks for it *)
val push : 'a t -> 'a list -> [ `Dropped | `Ok ] val push : 'a t -> 'a list -> [ `Dropped | `Ok ]
(** [push b xs] is [`Ok] if it succeeds in pushing the values in [xs] into the batch (** [push b xs] is [`Ok] if it succeeds in pushing the values in [xs] into the
[b], or [`Dropped] if the current size of the batch has exceeded the high water batch [b], or [`Dropped] if the current size of the batch has exceeded the
mark determined by the [batch] argument to [{!make}]. ) *) high water mark determined by the [batch] argument to [{!make}]. ) *)

View file

@ -145,12 +145,19 @@ let client ?(scope : Otel.Scope.t option) (module C : Cohttp_lwt.S.Client) =
(* These types and values are not customized by our client, but are required to satisfy (* These types and values are not customized by our client, but are required to satisfy
[Cohttp_lwt.S.Client]. *) [Cohttp_lwt.S.Client]. *)
include (C : sig include (
C :
sig
type ctx = C.ctx type ctx = C.ctx
type 'a io = 'a C.io type 'a io = 'a C.io
type 'a with_context = 'a C.with_context type 'a with_context = 'a C.with_context
type body = C.body type body = C.body
val map_context : 'a with_context -> ('a -> 'b) -> 'b with_context val map_context : 'a with_context -> ('a -> 'b) -> 'b with_context
val set_cache : Cohttp_lwt.S.call -> unit val set_cache : Cohttp_lwt.S.call -> unit
end) end)

View file

@ -46,8 +46,7 @@
opentelemetry-client-cohttp-lwt opentelemetry-client-cohttp-lwt
opentelemetry-cohttp-lwt opentelemetry-cohttp-lwt
opentelemetry-logs opentelemetry-logs
logs logs))
))
(executable (executable
(name cohttp_client) (name cohttp_client)
@ -57,5 +56,3 @@
opentelemetry opentelemetry
opentelemetry-client-cohttp-lwt opentelemetry-client-cohttp-lwt
opentelemetry-cohttp-lwt)) opentelemetry-cohttp-lwt))

View file

@ -3,16 +3,10 @@
; Make the binaries for the test emitters available on the path for the components defined in this dir. ; Make the binaries for the test emitters available on the path for the components defined in this dir.
; See https://dune.readthedocs.io/en/stable/reference/dune/env.html ; See https://dune.readthedocs.io/en/stable/reference/dune/env.html
(binaries (binaries
(../bin/emit_logs_cohttp.exe as emit_logs_cohttp) (../bin/emit_logs_cohttp.exe as emit_logs_cohttp))))
)))
(tests (tests
(names test_logs_e2e) (names test_logs_e2e)
(package opentelemetry-logs) (package opentelemetry-logs)
(libraries (libraries opentelemetry opentelemetry-logs signal_gatherer alcotest)
opentelemetry (deps %{bin:emit_logs_cohttp}))
opentelemetry-logs
signal_gatherer
alcotest)
(deps %{bin:emit_logs_cohttp})
)