Skip to content

toolmark-monorepo / @toolmark/core/otel / OtelOptions

Interface: OtelOptions ​

Defined in: packages/core/src/otel/index.ts:16

Options for otel.

Properties ​

meter? ​

optional meter?: Meter

Defined in: packages/core/src/otel/index.ts:20

Meter to record toolmark.calls/toolmark.call.duration on (default metrics.getMeter('@toolmark/core')).


recordPayloads? ​

optional recordPayloads?: boolean

Defined in: packages/core/src/otel/index.ts:28

Record toolmark.input/toolmark.result span attributes (JSON, truncated to 4096 chars, with the tool's sensitive paths redacted in the input — mapped onto the input's shape, e.g. values.<path> for a form fill and steps.<step>.<path> for a wizard fill — and tm.info(tool).sensitivePaths redacted in the result's field changes). Off by default (spec §14): OTel never records inputs or results unless explicitly opted in.


tracer? ​

optional tracer?: Tracer

Defined in: packages/core/src/otel/index.ts:18

Tracer to record spans on (default trace.getTracer('@toolmark/core')).