Skip to content

Connectum API Reference / @connectum/otel / TracedOptions

Interface: TracedOptions ​

Defined in: types.ts:104

Options for traced() function wrapper

Properties ​

argsFilter? ​

optional argsFilter?: ArgsFilter

Defined in: types.ts:122

Additional transform/masking for recorded args. Called after whitelist filtering.


attributes? ​

optional attributes?: Record<string, string | number | boolean>

Defined in: types.ts:127

Custom attributes to add to every span


name? ​

optional name?: string

Defined in: types.ts:108

Span name. Defaults to fn.name or "anonymous"


recordArgs? ​

optional recordArgs?: boolean | string[]

Defined in: types.ts:116

Record function arguments as span attributes.

  • false (default): no args recorded
  • true: all args recorded
  • string[]: whitelist of zero-based argument indices encoded as strings