Skip to content

Connectum API Reference / @connectum/otel / provider / buildResourceAttributes

Function: buildResourceAttributes()

buildResourceAttributes(inputs): Record<string, string | number | boolean>

Defined in: packages/otel/src/provider.ts:98

Build the flat resource-attribute record shared by traces, metrics, and logs.

Precedence (lowest to highest): service.name/service.version → env (OTEL_RESOURCE_ATTRIBUTES, OTEL_SERVICE_INSTANCE_ID) → explicit resourceAttributes → explicit instanceId.

Parameters

inputs

ResourceAttributeInputs

Returns

Record<string, string | number | boolean>