mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-07 18:37:56 -05:00
grrr cohttp and its signature breakages
This commit is contained in:
parent
1b3aafdb8d
commit
14ac07660d
1 changed files with 3 additions and 17 deletions
|
|
@ -143,23 +143,9 @@ let client ?(scope : Otel.Scope.t option) (module C : Cohttp_lwt.S.Client) =
|
|||
let module Traced = struct
|
||||
open Lwt.Syntax
|
||||
|
||||
(* These types and values are not customized by our client, but are required to satisfy
|
||||
[Cohttp_lwt.S.Client]. *)
|
||||
include (
|
||||
C :
|
||||
sig
|
||||
type ctx = C.ctx
|
||||
|
||||
type 'a io = 'a C.io
|
||||
|
||||
type 'a with_context = 'a C.with_context
|
||||
|
||||
type body = C.body
|
||||
|
||||
val map_context : 'a with_context -> ('a -> 'b) -> 'b with_context
|
||||
|
||||
val set_cache : Cohttp_lwt.S.call -> unit
|
||||
end)
|
||||
(* These types and values are not customized by our client, but are required to satisfy
|
||||
[Cohttp_lwt.S.Client]. *)
|
||||
include C
|
||||
|
||||
let attrs_for ~uri ~meth:_ () =
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue