: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
chore(ingestion): rename error_tracking pipeline value to errortracking (#58001)
Paweł Ledwońa169a1370dca
diff --git a/nodejs/src/ingestion/error-tracking/error-tracking-consumer.test.ts b/nodejs/src/ingestion/error-tracking/error-tracking-consumer.test.tsindex 97ed1c2cdf0d..6ce4ee850617 100644--- a/nodejs/src/ingestion/error-tracking/error-tracking-consumer.test.ts+++ b/nodejs/src/ingestion/error-tracking/error-tracking-consumer.test.ts@@ -156,7 +156,7 @@ describe('ErrorTrackingConsumer', () => {statefulOverflowEnabled: hub.ERROR_TRACKING_STATEFUL_OVERFLOW_ENABLED,statefulOverflowRedisTTLSeconds: hub.ERROR_TRACKING_STATEFUL_OVERFLOW_REDIS_TTL_SECONDS,statefulOverflowLocalCacheTTLSeconds: hub.ERROR_TRACKING_STATEFUL_OVERFLOW_LOCAL_CACHE_TTL_SECONDS,- pipeline: hub.INGESTION_PIPELINE ?? 'error_tracking',+ pipeline: hub.INGESTION_PIPELINE ?? 'errortracking',rateLimiterEnabled: hub.ERROR_TRACKING_RATE_LIMITER_ENABLED,rateLimiterReportingMode: hub.ERROR_TRACKING_RATE_LIMITER_REPORTING_MODE,rateLimiterRedisHost: hub.ERROR_TRACKING_RATE_LIMITER_REDIS_HOST,diff --git a/nodejs/src/ingestion/error-tracking/error-tracking-consumer.ts b/nodejs/src/ingestion/error-tracking/error-tracking-consumer.tsindex 73bb5d6a2587..e4bd0d3aba9b 100644--- a/nodejs/src/ingestion/error-tracking/error-tracking-consumer.ts+++ b/nodejs/src/ingestion/error-tracking/error-tracking-consumer.ts@@ -145,7 +145,7 @@ export class ErrorTrackingConsumer {this.promiseScheduler = new PromiseScheduler()this.eventIngestionRestrictionManager = new EventIngestionRestrictionManager(deps.redisPool, {- pipeline: 'error_tracking',+ pipeline: 'errortracking',})// Create shared Redis repository for overflow redirect servicesdiff --git a/nodejs/src/ingestion/error-tracking/error-tracking-pipeline.test.ts b/nodejs/src/ingestion/error-tracking/error-tracking-pipeline.test.tsindex 424eb215d6ce..ef899e063370 100644--- a/nodejs/src/ingestion/error-tracking/error-tracking-pipeline.test.ts+++ b/nodejs/src/ingestion/error-tracking/error-tracking-pipeline.test.ts@@ -937,7 +937,7 @@ describe('ErrorTrackingPipeline', () => {topHog = new TopHog({outputs: tophogOutputs,- pipeline: 'error_tracking',+ pipeline: 'errortracking',lane: 'main',})})@@ -1044,7 +1044,7 @@ describe('ErrorTrackingPipeline', () => {const messages = getTopHogMessages()expect(messages.length).toBeGreaterThan(0)for (const msg of messages) {- expect(msg.pipeline).toBe('error_tracking')+ expect(msg.pipeline).toBe('errortracking')expect(msg.lane).toBe('main')}})diff --git a/nodejs/src/servers/error-tracking-server.ts b/nodejs/src/servers/error-tracking-server.tsindex 18cc3f9c50e1..293953d69e61 100644--- a/nodejs/src/servers/error-tracking-server.ts+++ b/nodejs/src/servers/error-tracking-server.ts@@ -206,7 +206,7 @@ export class ErrorTrackingServer implements NodeServer {statefulOverflowRedisTTLSeconds: this.config.ERROR_TRACKING_STATEFUL_OVERFLOW_REDIS_TTL_SECONDS,statefulOverflowLocalCacheTTLSeconds:this.config.ERROR_TRACKING_STATEFUL_OVERFLOW_LOCAL_CACHE_TTL_SECONDS,- pipeline: this.config.INGESTION_PIPELINE ?? 'error_tracking',+ pipeline: this.config.INGESTION_PIPELINE ?? 'errortracking',rateLimiterEnabled: this.config.ERROR_TRACKING_RATE_LIMITER_ENABLED,rateLimiterReportingMode: this.config.ERROR_TRACKING_RATE_LIMITER_REPORTING_MODE,rateLimiterRedisHost: this.config.ERROR_TRACKING_RATE_LIMITER_REDIS_HOST,diff --git a/nodejs/src/utils/event-ingestion-restrictions/manager.ts b/nodejs/src/utils/event-ingestion-restrictions/manager.tsindex ab9ee059fdd1..ee24882d135a 100644--- a/nodejs/src/utils/event-ingestion-restrictions/manager.ts+++ b/nodejs/src/utils/event-ingestion-restrictions/manager.ts@@ -7,7 +7,7 @@ import { logger } from '../logger'import { REDIS_KEY_PREFIX, RedisRestrictionArraySchema, RedisRestrictionType, toRestrictionRule } from './redis-schema'import { EventContext, RestrictionFilters, RestrictionMap, RestrictionRule, RestrictionType } from './rules'-export type IngestionPipeline = 'analytics' | 'session_recordings' | 'error_tracking'+export type IngestionPipeline = 'analytics' | 'session_recordings' | 'errortracking'const EMPTY_RESTRICTIONS: ReadonlySet<RestrictionType> = new Set()diff --git a/nodejs/src/utils/event-ingestion-restrictions/redis-schema.ts b/nodejs/src/utils/event-ingestion-restrictions/redis-schema.tsindex 7397004e127f..356f899e74dc 100644--- a/nodejs/src/utils/event-ingestion-restrictions/redis-schema.ts+++ b/nodejs/src/utils/event-ingestion-restrictions/redis-schema.ts@@ -13,7 +13,7 @@ export enum RedisRestrictionType {export const REDIS_KEY_PREFIX = 'event_ingestion_restriction_dynamic_config'// Base schema for common fields-const pipelinesSchema = z.array(z.enum(['analytics', 'session_recordings', 'error_tracking'])).optional()+const pipelinesSchema = z.array(z.enum(['analytics', 'session_recordings', 'errortracking'])).optional()// Redis schema v0 (legacy) - single identifier per entry, no version fieldconst RedisRestrictionItemSchemaV0 = z.object({