Interface: TelemetryOptions
Defined in: src/observability/telemetry.ts:35
Configuration options for OpenTelemetry initialization.
Properties
autoInstrumentation?
readonlyoptionalautoInstrumentation:object
Defined in: src/observability/telemetry.ts:94
Enable auto-instrumentation for specific libraries.
http?
readonlyoptionalhttp:boolean
pg?
readonlyoptionalpg:boolean
redis?
readonlyoptionalredis:boolean
Remarks
Controls which auto-instrumentation plugins are enabled.
Default Value
{ http: true, pg: true, redis: true }
environment?
readonlyoptionalenvironment:string
Defined in: src/observability/telemetry.ts:64
Deployment environment.
Remarks
Appears in traces and metrics as deployment.environment.
Default Value
process.env.NODE_ENV || 'development'
metricExportIntervalMs?
readonlyoptionalmetricExportIntervalMs:number
Defined in: src/observability/telemetry.ts:84
Metric export interval in milliseconds.
Remarks
How often metrics are sent to the collector.
Default Value
15000 (15 seconds)
otlpEndpoint?
readonlyoptionalotlpEndpoint:string
Defined in: src/observability/telemetry.ts:74
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?
readonlyoptionalserviceName:string
Defined in: src/observability/telemetry.ts:44
Service name for trace attribution.
Remarks
Appears in traces and metrics as service.name.
Default Value
process.env.OTEL_SERVICE_NAME || 'chive-appview'
serviceVersion?
readonlyoptionalserviceVersion:string
Defined in: src/observability/telemetry.ts:54
Service version.
Remarks
Appears in traces and metrics as service.version.
Default Value
process.env.OTEL_SERVICE_VERSION || process.env.npm_package_version || '0.0.0'