Skip to content

Commit 37604d1

Browse files
committed
web: modify tracing to get nicer span names
we don't need the full URL in the span name, these are supposed to be low cardinality. The URL is already provided in attributes.
1 parent 5a12b2b commit 37604d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ module Http (IO : IO_TYPE) (Curl_IO : CURL with type 'a t = 'a IO.t) : HTTP with
302302
]
303303
in
304304
let explicit_span =
305-
let span_name = Printf.sprintf "%s %s" action_name url in
305+
let span_name = Printf.sprintf "devkit.web.%s" action_name in
306306
(* We set the value of `__FUNCTION__` to preserve the build with OCaml < 4.12. *)
307307
Possibly_otel.enter_manual_span
308308
~__FUNCTION__:"Devkit.Web.Http.http_request'" ~__FILE__ ~__LINE__ ~data:describe span_name in

0 commit comments

Comments
 (0)