: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
from posthog.api.routing import RouterRegistry
from products.tracing.backend.presentation.retention_api import TracingRetentionRuleViewSet
from products.tracing.backend.presentation.views import SpansViewSet
from products.tracing.backend.presentation.views_api import TracingViewViewSet
def register_routes(routers: RouterRegistry) -> None:
routers.projects.register(
r"tracing/spans",
SpansViewSet,
"project_tracing_spans",
["team_id"],
)
routers.projects.register(
r"tracing/views",
TracingViewViewSet,
"project_tracing_views",
["team_id"],
)
routers.projects.register(
r"tracing/retention_rules",
TracingRetentionRuleViewSet,
"project_tracing_retention_rules",
["team_id"],
)