Connectum API Reference / @connectum/otel / provider / parseOtelResourceAttributesEnv
Function: parseOtelResourceAttributesEnv()
parseOtelResourceAttributesEnv(
raw):Record<string,string>
Defined in: packages/otel/src/provider.ts:62
Parse the standard OTEL_RESOURCE_ATTRIBUTES env var (key1=value1,key2=value2) into an attribute record. Malformed pairs (no =, empty key) are skipped. Values are kept as strings; whitespace around keys and values is trimmed.
Parameters
raw
string | undefined
Returns
Record<string, string>
