Skip to main content

Interface: TelemetryOptions

Defined in: src/observability/telemetry.ts:37

Configuration options for OpenTelemetry initialization.

Properties​

autoInstrumentation?​

readonly optional autoInstrumentation: object

Defined in: src/observability/telemetry.ts:96

Enable auto-instrumentation for specific libraries.

http?​

readonly optional http: boolean

pg?​

readonly optional pg: boolean

redis?​

readonly optional redis: boolean

Remarks​

Controls which auto-instrumentation plugins are enabled.

Default Value​

{ http: true, pg: true, redis: true }

environment?​

readonly optional environment: string

Defined in: src/observability/telemetry.ts:66

Deployment environment.

Remarks​

Appears in traces and metrics as deployment.environment.

Default Value​

process.env.NODE_ENV || 'development'

metricExportIntervalMs?​

readonly optional metricExportIntervalMs: number

Defined in: src/observability/telemetry.ts:86

Metric export interval in milliseconds.

Remarks​

How often metrics are sent to the collector.

Default Value​

15000 (15 seconds)

otlpEndpoint?​

readonly optional otlpEndpoint: string

Defined in: src/observability/telemetry.ts:76

OTEL Collector endpoint for traces.

Remarks​

The OTLP HTTP endpoint for sending traces.

Default Value​

process.env.OTEL_EXPORTER_OTLP_ENDPOINT || 'http://otel-collector:4318'

serviceName?​

readonly optional serviceName: string

Defined in: src/observability/telemetry.ts:46

Service name for trace attribution.

Remarks​

Appears in traces and metrics as service.name.

Default Value​

process.env.OTEL_SERVICE_NAME || 'chive-appview'

serviceVersion?​

readonly optional serviceVersion: string

Defined in: src/observability/telemetry.ts:56

Service version.

Remarks​

Appears in traces and metrics as service.version.

Default Value​

process.env.OTEL_SERVICE_VERSION, else the release version from getAppVersion()