: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
feat(ingestion): add tophog timer for group processing (#69755)
Paweł Ledwońd66217664c32
diff --git a/nodejs/src/ingestion/pipelines/analytics/event-subpipeline.ts b/nodejs/src/ingestion/pipelines/analytics/event-subpipeline.tsindex 19f605b92e46..15f009931c7a 100644--- a/nodejs/src/ingestion/pipelines/analytics/event-subpipeline.ts+++ b/nodejs/src/ingestion/pipelines/analytics/event-subpipeline.ts@@ -136,9 +136,16 @@ export function createEventSubpipeline<TInput extends EventSubpipelineInput, TCo{ retry: { tries: 5, sleepMs: 100, name: 'process_persons' } }).pipe(createPrepareEventStep())- .pipe(createProcessGroupsStep(teamManager, groupTypeManager, options), {- retry: { tries: 5, sleepMs: 100, name: 'process_groups' },- })+ .pipe(+ topHog(createProcessGroupsStep(teamManager, groupTypeManager, options), [+ timer('process_groups_time', (input) => ({+ team_id: String(input.team.id),+ distinct_id: input.preparedEvent.distinctId,+ partition: String(input.message.partition),+ })),+ ]),+ { retry: { tries: 5, sleepMs: 100, name: 'process_groups' } }+ ).pipe(createCreateEventStep(EVENTS_OUTPUT)).pipe(topHog(