Configures the camelCase-input -> canonical-attribute mapping used by
extractDomainAttributes / withDomainContext. Intended to be called once at startup
from the consumer's instrumentation entry point. Subsequent calls fully replace the
previous mapping.
Domain attributes should follow the dotted convention (patient.id, session.id, ...)
so they read naturally alongside OTel semantic conventions (user.id, db.system.name).
Only register IDs that are stable, non-PII identifiers — values are stringified before
being placed in baggage (W3C baggage values are always strings).
Configures the camelCase-input -> canonical-attribute mapping used by
extractDomainAttributes/withDomainContext. Intended to be called once at startup from the consumer's instrumentation entry point. Subsequent calls fully replace the previous mapping.Domain attributes should follow the dotted convention (
patient.id,session.id, ...) so they read naturally alongside OTel semantic conventions (user.id,db.system.name). Only register IDs that are stable, non-PII identifiers — values are stringified before being placed in baggage (W3C baggage values are always strings).