: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
import { urls } from 'scenes/urls'
import { DataModelingHealthTable } from '../components/DataModelingHealthTable'
import { ErrorTrackingHealthTable } from '../components/ErrorTrackingHealthTable'
import { IngestionWarningTable } from '../components/IngestionWarningTable'
import { PipelineHealthTable } from '../components/PipelineHealthTable'
import { WebAnalyticsHealthTable } from '../components/WebAnalyticsHealthTable'
import type { HealthIssueCategory } from '../healthCategories'
import DataModelingDetailContent from './categories/DataModelingDetailContent'
import type { CategoryDetailContentComponent, HealthTableComponent } from './categoryDetailTypes'
export interface CategoryDetailConfig {
docsUrl?: string
deepDiveUrl?: string
deepDiveLabel?: string
guidance?: string
contentComponent?: CategoryDetailContentComponent
tableComponent?: HealthTableComponent
/** If set, navigating to /health/{category} redirects to this URL instead of rendering a drill-down page. */
redirectUrl?: string
}
export const CATEGORY_DETAIL_CONFIG: Partial<Record<HealthIssueCategory, CategoryDetailConfig>> = {
ingestion: {
docsUrl: 'https://posthog.com/docs/data/ingestion-warnings',
guidance:
'Ingestion issues mean some events may be delayed or missing. Check for warnings and address any lag.',
redirectUrl: urls.ingestionWarnings(),
tableComponent: IngestionWarningTable,
},
sdk: {
docsUrl: 'https://posthog.com/docs/libraries',
deepDiveUrl: urls.sdkHealth(),
deepDiveLabel: 'Open SDK health',
guidance: 'Outdated SDKs miss bug fixes and new features. Update to the latest version for best results.',
redirectUrl: urls.sdkHealth(),
},
web_analytics: {
docsUrl: 'https://posthog.com/docs/web-analytics',
guidance: 'These checks ensure your web analytics data is complete and accurate.',
redirectUrl: urls.webAnalyticsHealth(),
tableComponent: WebAnalyticsHealthTable,
},
pipelines: {
docsUrl: 'https://posthog.com/docs/cdp',
deepDiveUrl: urls.sources(),
deepDiveLabel: 'Open sources',
guidance: 'Pipeline failures mean data may not be flowing to your destinations correctly.',
redirectUrl: urls.sources(),
tableComponent: PipelineHealthTable,
},
data_modeling: {
docsUrl: 'https://posthog.com/docs/data-warehouse',
guidance: 'Materialized view failures may affect query performance and data freshness.',
contentComponent: DataModelingDetailContent,
tableComponent: DataModelingHealthTable,
},
error_tracking: {
docsUrl: 'https://posthog.com/docs/error-tracking',
guidance: 'These checks ensure your error tracking setup captures exceptions with readable stack traces.',
redirectUrl: urls.errorTracking(),
tableComponent: ErrorTrackingHealthTable,
},
}