Skip to content

Connectum API Reference / @connectum/otel / TracedOptions

Interface: TracedOptions

Defined in: packages/otel/src/types.ts:104

Options for traced() function wrapper

Properties

argsFilter?

optional argsFilter: ArgsFilter

Defined in: packages/otel/src/types.ts:122

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


attributes?

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

Defined in: packages/otel/src/types.ts:127

Custom attributes to add to every span


name?

optional name: string

Defined in: packages/otel/src/types.ts:108

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


recordArgs?

optional recordArgs: boolean | string[]

Defined in: packages/otel/src/types.ts:116

Record function arguments as span attributes.

  • false (default): no args recorded
  • true: all args recorded
  • string[]: whitelist of argument names/indices