Skip to content

Commit b4589de

Browse files
committed
WIP: try fix for the ocaml-ci
- `String.starts_with` added in 4.13. - `__FUNCTION__` added in 4.12.
1 parent dc07cd9 commit b4589de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

web.ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ module Http (IO : IO_TYPE) (Curl_IO : CURL with type 'a t = 'a IO.t) : HTTP with
247247
(* Given a list of strings, check pre-existing entry starting with `~name`; and adds the concatenation of `~name` and `~value` if not. *)
248248
let add_if_absent ~name ~value strs =
249249
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
251251
| Some strs -> (String.concat ": " [name; value]) :: strs
252252
| None -> [String.concat ": " [name; value]]
253253

@@ -301,7 +301,8 @@ module Http (IO : IO_TYPE) (Curl_IO : CURL with type 'a t = 'a IO.t) : HTTP with
301301
"url.full", `String url;
302302
]
303303
in
304-
let explicit_span = Possibly_otel.enter_manual_span ~__FUNCTION__ ~__FILE__ ~__LINE__ ~data:describe action_name in
304+
let explicit_span =
305+
Possibly_otel.enter_manual_span ~__FUNCTION__:"Web.Http.add_if_absent" ~__FILE__ ~__LINE__ ~data:describe action_name in
305306

306307
let headers = match Possibly_otel.Traceparent.get_ambient ~explicit_span () with
307308
| None -> headers

0 commit comments

Comments
 (0)