File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ depends: [
18
18
"camlzip"
19
19
"libevent" {>= "0.8.0"}
20
20
"ocurl" {>= "0.7.2"}
21
- "pcre"
21
+ "pcre" {>= "7.4.6"}
22
22
"trace" {>= "0.4"}
23
23
"extunix" {>= "0.1.4"}
24
- "lwt" {>= "2.5.2 "}
24
+ "lwt" {>= "5.7.0 "}
25
25
"lwt_ppx"
26
26
"base-bytes"
27
27
"base-unix"
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ module Http (IO : IO_TYPE) (Curl_IO : CURL with type 'a t = 'a IO.t) : HTTP with
247
247
(* Given a list of strings, check pre-existing entry starting with `~name`; and adds the concatenation of `~name` and `~value` if not. *)
248
248
let add_if_absent ~name ~value strs =
249
249
match strs with
250
- | Some strs when List. exists (StringLabels . starts_with ~prefix: (name^ " :" )) strs -> strs
250
+ | Some strs when List. exists (fun s -> Stre . starts_with s (name^ " :" )) strs -> strs
251
251
| Some strs -> (String. concat " : " [name; value]) :: strs
252
252
| None -> [String. concat " : " [name; value]]
253
253
@@ -301,7 +301,10 @@ module Http (IO : IO_TYPE) (Curl_IO : CURL with type 'a t = 'a IO.t) : HTTP with
301
301
" url.full" , `String url;
302
302
]
303
303
in
304
- let explicit_span = Possibly_otel. enter_manual_span ~__FUNCTION__ ~__FILE__ ~__LINE__ ~data: describe action_name in
304
+ let explicit_span =
305
+ (* We set the value of `__FUNCTION__` to preserve the build with OCaml < 4.12. *)
306
+ Possibly_otel. enter_manual_span
307
+ ~__FUNCTION__:" Devkit.Web.Http.http_request'" ~__FILE__ ~__LINE__ ~data: describe action_name in
305
308
306
309
let headers = match Possibly_otel.Traceparent. get_ambient ~explicit_span () with
307
310
| None -> headers
You can’t perform that action at this time.
0 commit comments