TelemetryConfig
Defined in: packages/core/src/telemetry.ts:85
Configuration for the built-in OTLP exporters.
Properties
Section titled “Properties”attributes?
Section titled “attributes?”
readonlyoptionalattributes?:Readonly<Record<string,unknown>>
Defined in: packages/core/src/telemetry.ts:107
compression?
Section titled “compression?”
readonlyoptionalcompression?:"gzip"|"none"
Defined in: packages/core/src/telemetry.ts:115
console?
Section titled “console?”
readonlyoptionalconsole?:boolean
Defined in: packages/core/src/telemetry.ts:100
Write finished spans to the console instead of exporting them over OTLP.
Console spans still keep Effect’s trace context, so nested Arona spans are indented and printed when they end. Metrics and logs keep using the OTLP endpoint when one is configured.
enabled?
Section titled “enabled?”
readonlyoptionalenabled?:boolean
Defined in: packages/core/src/telemetry.ts:90
Set to false to disable every exporter. Defaults to true when an
endpoint or console tracing is configured.
endpoint?
Section titled “endpoint?”
readonlyoptionalendpoint?:string
Defined in: packages/core/src/telemetry.ts:92
OTLP/HTTP base endpoint, for example http://localhost:4318.
headers?
Section titled “headers?”
readonlyoptionalheaders?:Readonly<Record<string,string>>
Defined in: packages/core/src/telemetry.ts:108
loggerExportInterval?
Section titled “loggerExportInterval?”
readonlyoptionalloggerExportInterval?:number
Defined in: packages/core/src/telemetry.ts:118
readonlyoptionallogs?:boolean
Defined in: packages/core/src/telemetry.ts:114
Enable Effect logs. Defaults to true.
logsEndpoint?
Section titled “logsEndpoint?”
readonlyoptionallogsEndpoint?:string
Defined in: packages/core/src/telemetry.ts:104
maxBatchSize?
Section titled “maxBatchSize?”
readonlyoptionalmaxBatchSize?:number
Defined in: packages/core/src/telemetry.ts:119
maxQueueSize?
Section titled “maxQueueSize?”
readonlyoptionalmaxQueueSize?:number
Defined in: packages/core/src/telemetry.ts:120
metricExportInterval?
Section titled “metricExportInterval?”
readonlyoptionalmetricExportInterval?:number
Defined in: packages/core/src/telemetry.ts:117
metrics?
Section titled “metrics?”
readonlyoptionalmetrics?:boolean
Defined in: packages/core/src/telemetry.ts:112
Enable metrics. Defaults to true.
metricsEndpoint?
Section titled “metricsEndpoint?”
readonlyoptionalmetricsEndpoint?:string
Defined in: packages/core/src/telemetry.ts:103
onDrop?
Section titled “onDrop?”
readonlyoptionalonDrop?: (count) =>void
Defined in: packages/core/src/telemetry.ts:121
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”void
serviceName?
Section titled “serviceName?”
readonlyoptionalserviceName?:string
Defined in: packages/core/src/telemetry.ts:105
serviceVersion?
Section titled “serviceVersion?”
readonlyoptionalserviceVersion?:string
Defined in: packages/core/src/telemetry.ts:106
shutdownTimeout?
Section titled “shutdownTimeout?”
readonlyoptionalshutdownTimeout?:number
Defined in: packages/core/src/telemetry.ts:122
tracerExportInterval?
Section titled “tracerExportInterval?”
readonlyoptionaltracerExportInterval?:number
Defined in: packages/core/src/telemetry.ts:116
traces?
Section titled “traces?”
readonlyoptionaltraces?:boolean
Defined in: packages/core/src/telemetry.ts:110
Enable traces. Defaults to true.
tracesEndpoint?
Section titled “tracesEndpoint?”
readonlyoptionaltracesEndpoint?:string
Defined in: packages/core/src/telemetry.ts:102
Per-signal endpoint overrides.