Traceparent

val Traceparent: ClientPlugin<Unit>

A plugin of Ktor's HttpClient that sends the traceparent header with each request made inside a node traced by an OtlpObserver, so that the server records its spans inside the span of the node. A request outside a traced node, or with a traceparent of its own, is sent as it is.

val api = HttpClient(Js) { install(Traceparent) }

Install it in the clients that call servers of your own. A provider of models does not need the header.