Skip to content

Connectum API Reference / @connectum/otel / shared / detectConnectumTransport

Function: detectConnectumTransport() ​

detectConnectumTransport(headers): "in-process" | "http"

Defined in: shared.ts:358

Connectum transport identifier observed from request headers.

@connectum/core's createLocalTransport sets a synthetic request header (connectum-internal-transport: in-process) on every outgoing call so that the OTel interceptors can tag spans and metrics with the originating transport without parsing the synthetic https://in-memory/... URL.

Parameters ​

headers ​

Headers

The request headers (Connect req.header)

Returns ​

"in-process" | "http"

"in-process" if the marker is present, "http" otherwise.