: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 { logsRetentionRulesSettingsUrl } from 'products/logs/frontend/logsRetentionRulesSettingsUrl'
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
export interface logsRetentionNewSceneLogicValues {
breadcrumbs: Breadcrumb[]
}
export type logsRetentionNewSceneLogicType = MakeLogicType<logsRetentionNewSceneLogicValues, {}>
export const logsRetentionNewSceneLogic = kea<logsRetentionNewSceneLogicType>([
path(['products', 'logs', 'frontend', 'scenes', 'LogsRetentionNewScene', 'logsRetentionNewSceneLogic']),
selectors({
breadcrumbs: [
() => [],
(): Breadcrumb[] => [
{
key: Scene.Logs,
name: 'Logs',
path: logsRetentionRulesSettingsUrl(),
iconType: 'logs',
},
{ key: Scene.LogsRetentionNew, name: 'New retention rule', iconType: 'logs' },
],
],
}),
])