Skip to main content

Interface: TelemetryOptions

Defined in: packages/telemetry/src/start.ts:6

Options for startTelemetry.

Properties​

env?​

readonly optional env?: Readonly<Record<string, string | undefined>>

Defined in: packages/telemetry/src/start.ts:10

The process environment. Defaults to process.env.


exporter?​

readonly optional exporter?: SpanExporter

Defined in: packages/telemetry/src/start.ts:15

A span exporter to use instead of OTLP, which turns telemetry on without an endpoint. For tests: spans are exported synchronously as they end.


instrumentations?​

readonly optional instrumentations?: boolean

Defined in: packages/telemetry/src/start.ts:17

Register the http, pg and fastify instrumentations. Default true; false for tests.


service​

readonly service: string

Defined in: packages/telemetry/src/start.ts:8

The deployable: service.name on every span.