feat(env): add average telemetry row size env vars with validation

- introduce parsePositiveNumberFromEnv helper in EnvironmentConfig.ts
- add AverageSpan/Log/MetricRowSizeInBytes exports with positive-number parsing and defaults
- document AVERAGE_* vars in config.example.env and expose them in docker-compose.base.yml
This commit is contained in:
Nawaz Dhandala
2025-10-23 19:49:24 +01:00
parent 50ee87c86f
commit b1bc02cec4
7 changed files with 44 additions and 85 deletions

View File

@@ -204,6 +204,11 @@ BILLING_ENABLED=false
BILLING_PUBLIC_KEY=
BILLING_PRIVATE_KEY=
# Average telemetry row sizes in bytes used to estimate usage when reporting to the billing provider.
AVERAGE_SPAN_ROW_SIZE_IN_BYTES=1024
AVERAGE_LOG_ROW_SIZE_IN_BYTES=1024
AVERAGE_METRIC_ROW_SIZE_IN_BYTES=1024
# Use this when you want to disable incident creation.
DISABLE_AUTOMATIC_INCIDENT_CREATION=false