: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 { logsDropRulesSettingsUrl } from 'products/logs/frontend/logsDropRulesSettingsUrl'
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
export interface logsSamplingNewSceneLogicValues {
breadcrumbs: Breadcrumb[]
}
export type logsSamplingNewSceneLogicType = MakeLogicType<logsSamplingNewSceneLogicValues, {}>
export const logsSamplingNewSceneLogic = kea<logsSamplingNewSceneLogicType>([
path(['products', 'logs', 'frontend', 'scenes', 'LogsSamplingNewScene', 'logsSamplingNewSceneLogic']),
selectors({
breadcrumbs: [
() => [],
(): Breadcrumb[] => [
{
key: Scene.Logs,
name: 'Logs',
path: logsDropRulesSettingsUrl(),
iconType: 'logs',
},
{ key: Scene.LogsSamplingNew, name: 'New drop rule', iconType: 'logs' },
],
],
}),
])