:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(billing): exclude anomaly scores from ingestion usage (#122572)
Pawel Cebulaa7cd968de073
diff --git a/nodejs/src/ingestion/common/usage-records/billable-events.test.ts b/nodejs/src/ingestion/common/usage-records/billable-events.test.tsindex 8461968fa4a5..b0c3960fa502 100644--- a/nodejs/src/ingestion/common/usage-records/billable-events.test.ts+++ b/nodejs/src/ingestion/common/usage-records/billable-events.test.ts@@ -22,6 +22,8 @@ describe('usage key resolvers', () => {['$exception', null],['$llm_prompt_fetched', null],['$conversations_message_sent', null],+ ['$anomaly_score', null],+ ['$anomaly_score_shadow', null],])('resolveAnalyticsUsageKey bills %s under %s', (event, expected) => {expect(resolveAnalyticsUsageKey(event)).toBe(expected)})diff --git a/nodejs/src/ingestion/common/usage-records/billable-events.ts b/nodejs/src/ingestion/common/usage-records/billable-events.tsindex 2313bdd18f7f..182d9c160682 100644--- a/nodejs/src/ingestion/common/usage-records/billable-events.ts+++ b/nodejs/src/ingestion/common/usage-records/billable-events.ts@@ -24,6 +24,8 @@ const NON_BILLABLE_EVENTS = new Set(['$conversations_restore_link_requested','$conversations_widget_state_changed','$conversations_back_to_tickets',+ '$anomaly_score',+ '$anomaly_score_shadow',])/**