Connectum API Reference / @connectum/otel / provider / ProviderOptions
Interface: ProviderOptions ​
Defined in: provider.ts:40
Options for initializing the OpenTelemetry provider
Properties ​
instanceId? ​
optionalinstanceId?:string
Defined in: provider.ts:50
Sets service.instance.id on the resource (OTel semconv). Lets a fleet of same-role processes be told apart in telemetry. Takes precedence over the OTEL_SERVICE_INSTANCE_ID env var.
resourceAttributes? ​
optionalresourceAttributes?:Record<string,string|number|boolean>
Defined in: provider.ts:56
Extra resource attributes merged into the resource (e.g. device.id, facility). Applied to traces, metrics, and logs alike. Takes precedence over attributes parsed from the OTEL_RESOURCE_ATTRIBUTES env var.
serviceName? ​
optionalserviceName?:string
Defined in: provider.ts:42
Override service name (defaults to OTEL_SERVICE_NAME, then service.name in OTEL_RESOURCE_ATTRIBUTES, then npm_package_name)
serviceVersion? ​
optionalserviceVersion?:string
Defined in: provider.ts:44
Override service version (defaults to npm_package_version)
settings? ​
optionalsettings?:Partial<OTLPSettings>
Defined in: provider.ts:58
Override OTLP exporter settings (defaults to env-based config)