Skip to content

OpenTelemetryOptions

Defined in: src/otel.ts:4

optional attributes?: (input) => Attributes | undefined

Defined in: src/otel.ts:16

Extra attributes for every metric data point and span, e.g. ({ context }) => ({ tenant: context.properties.get('tenant') }).

TelemetryEvent | ExecutionInfo

Attributes | undefined


optional meter?: Meter

Defined in: src/otel.ts:6

Default: metrics.getMeter('resilience-pipeline') from the global MeterProvider.


optional metrics?: boolean

Defined in: src/otel.ts:10

Record metrics. Default true.


optional spanEvents?: boolean

Defined in: src/otel.ts:14

Also add each strategy event to the active span (retries, timeouts, circuit changes show up in traces). Default true.


optional tracer?: Tracer

Defined in: src/otel.ts:8

Default: trace.getTracer('resilience-pipeline') from the global TracerProvider.


optional traces?: boolean

Defined in: src/otel.ts:12

One span per pipeline execution and one child span per attempt. Default true.