feat(telemetry): account for Exceptions in usage billing and add avg exception row size

- Update TelemetryUsageBilling description to include Exceptions.
- Add AverageExceptionRowSizeInBytes env/config (env example, docker-compose, Helm values & schema).
- Use ExceptionInstanceService in TelemetryUsageBillingService to include exception row counts when estimating bytes for Traces.
- Add helper to read average exception row size and adjust billing calculations.
This commit is contained in:
Nawaz Dhandala
2025-10-27 16:26:46 +00:00
parent 90fcfd1c7e
commit 34737fbba4
8 changed files with 84 additions and 9 deletions

View File

@@ -208,6 +208,7 @@ BILLING_PRIVATE_KEY=
AVERAGE_SPAN_ROW_SIZE_IN_BYTES=1024
AVERAGE_LOG_ROW_SIZE_IN_BYTES=1024
AVERAGE_METRIC_ROW_SIZE_IN_BYTES=1024
AVERAGE_EXCEPTION_ROW_SIZE_IN_BYTES=1024
# Use this when you want to disable incident creation.
DISABLE_AUTOMATIC_INCIDENT_CREATION=false