Skip to content

: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.

feat(ingestion): extend merge distinct id histogram buckets to 1M (#92925)

Nick Best03d287288649
diff --git a/nodejs/src/common/utils/db/metrics.ts b/nodejs/src/common/utils/db/metrics.ts
index 2b8fa94b86a6..3d7605c85aac 100644
--- a/nodejs/src/common/utils/db/metrics.ts
+++ b/nodejs/src/common/utils/db/metrics.ts
@@ -19,7 +19,9 @@ export const pluginLogEntryCounter = new Counter({
export const moveDistinctIdsCountHistogram = new Histogram({
name: 'move_distinct_ids_count',
help: 'Number of distinct IDs moved in merge operations',
- buckets: [0, 1, 2, 5, 10, 20, 50, 100, 200, 500, 1000],
+ buckets: [
+ 0, 1, 2, 5, 10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 50000, 100000, 200000, 500000, 1000000,
+ ],
})
export const personPropertiesSizeHistogram = new Histogram({