CaptureBodyOptions
Defined in: src/otel/config.ts:112
Object form of OtelOptions.captureBody.
Properties
maxBytes?
readonlyoptionalmaxBytes?:number
Defined in: src/otel/config.ts:120
Maximum number of bytes to capture. Payloads longer than this are
truncated; a messaging.nats.message.body.truncated attribute is
added to indicate truncation occurred.
Default
4096
subjectAllowlist?
readonlyoptionalsubjectAllowlist?: readonlystring[]
Defined in: src/otel/config.ts:127
Only capture body for subjects matching these glob patterns. Each
pattern supports * wildcards and an optional leading ! for
exclusion. When omitted, body capture applies to all subjects.