diff --git a/dune-project b/dune-project index b1a84c72..91e27d51 100644 --- a/dune-project +++ b/dune-project @@ -101,7 +101,9 @@ (lwt (>= "5.3")) (cohttp-lwt - (>= "4.0.0")) + (and + (>= "4.0.0") + (< "6"))) (alcotest :with-test)) (synopsis "Opentelemetry tracing for Cohttp HTTP servers")) diff --git a/opentelemetry-cohttp-lwt.opam b/opentelemetry-cohttp-lwt.opam index 0cd9bb22..0a1490ca 100644 --- a/opentelemetry-cohttp-lwt.opam +++ b/opentelemetry-cohttp-lwt.opam @@ -18,7 +18,7 @@ depends: [ "opentelemetry-lwt" {= version} "odoc" {with-doc} "lwt" {>= "5.3"} - "cohttp-lwt" {>= "4.0.0"} + "cohttp-lwt" {>= "4.0.0" & < "6"} "alcotest" {with-test} ] build: [