Connectum API Reference / @connectum/otel / TracedOptions
Interface: TracedOptions
Defined in: packages/otel/src/types.ts:104
Options for traced() function wrapper
Properties
argsFilter?
optionalargsFilter:ArgsFilter
Defined in: packages/otel/src/types.ts:122
Additional transform/masking for recorded args. Called after whitelist filtering.
attributes?
optionalattributes:Record<string,string|number|boolean>
Defined in: packages/otel/src/types.ts:127
Custom attributes to add to every span
name?
optionalname:string
Defined in: packages/otel/src/types.ts:108
Span name. Defaults to fn.name or "anonymous"
recordArgs?
optionalrecordArgs:boolean|string[]
Defined in: packages/otel/src/types.ts:116
Record function arguments as span attributes.
false(default): no args recordedtrue: all args recordedstring[]: whitelist of argument names/indices
