Variable: TELEMETRY_ENV
constTELEMETRY_ENV:object
Defined in: packages/telemetry/src/env.ts:8
The environment variables telemetry reads. Names are decided here so the collector step (1.11) and every service's deployment file spell them one way.
Telemetry is off unless OKTOID_TELEMETRY_ENDPOINT is set. A service therefore
starts, and exports nothing, with no collector configured (slice 1, step 1.4).
Type Declaration
endpoint
readonlyendpoint:"OKTOID_TELEMETRY_ENDPOINT"='OKTOID_TELEMETRY_ENDPOINT'
The OTLP/HTTP base URL of the collector, such as http://otel-collector:4318.
Unset or empty: telemetry is off, no SDK is loaded.
sampleRatio
readonlysampleRatio:"OKTOID_TELEMETRY_SAMPLE_RATIO"='OKTOID_TELEMETRY_SAMPLE_RATIO'
The fraction of root traces kept, 0 to 1. Default 1. A trace that arrives with a sampled parent is always kept, so a sampled gateway request is traced end to end.