: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 { MakeLogicType, kea, path, selectors } from 'kea'
import { Scene } from 'scenes/sceneTypes'
import { Breadcrumb } from '~/types'
import { tracingRetentionSettingsUrl } from 'products/tracing/frontend/tracingRetentionSettingsUrl'
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
export interface tracingRetentionNewSceneLogicValues {
breadcrumbs: Breadcrumb[]
}
export type tracingRetentionNewSceneLogicType = MakeLogicType<tracingRetentionNewSceneLogicValues, {}>
export const tracingRetentionNewSceneLogic = kea<tracingRetentionNewSceneLogicType>([
path(['products', 'tracing', 'frontend', 'scenes', 'TracingRetentionNewScene', 'tracingRetentionNewSceneLogic']),
selectors({
breadcrumbs: [
() => [],
(): Breadcrumb[] => [
{
key: Scene.Tracing,
name: 'Tracing',
path: tracingRetentionSettingsUrl(),
iconType: 'tracing',
},
{ key: Scene.TracingRetentionNew, name: 'New retention rule', iconType: 'tracing' },
],
],
}),
])