Connectum API Reference / @connectum/otel / shared / detectConnectumTransport
Function: detectConnectumTransport()
detectConnectumTransport(
headers):"http"|"in-process"
Defined in: packages/otel/src/shared.ts:187
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
"http" | "in-process"
"in-process" if the marker is present, "http" otherwise.
