: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
"""
Facade re-exports for task-run stream observability.
The SSE stream view records connection lifecycle metrics (open/close/length/resume-gap)
and labels them by origin product. These are framework-free observability primitives; the
view imports them from here rather than reaching the internal ``metrics`` module.
"""
from products.tasks.backend.metrics import (
StreamConnectionOutcome,
StreamTokenRoute,
observe_stream_backlog_bytes,
observe_stream_backlog_gap,
observe_stream_backlog_oversized,
observe_stream_backlog_served,
observe_stream_backlog_throttled,
observe_stream_connection_closed,
observe_stream_connection_opened,
observe_stream_length_on_connect,
observe_stream_resume_gap,
observe_stream_token_routed,
origin_product_label,
)
__all__ = [
"StreamConnectionOutcome",
"StreamTokenRoute",
"observe_stream_backlog_bytes",
"observe_stream_backlog_gap",
"observe_stream_backlog_oversized",
"observe_stream_backlog_served",
"observe_stream_backlog_throttled",
"observe_stream_connection_closed",
"observe_stream_connection_opened",
"observe_stream_length_on_connect",
"observe_stream_resume_gap",
"observe_stream_token_routed",
"origin_product_label",
]