: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 typing import Any, Literal
from products.cdp.backend.validation import compile_hog
AIObservabilityHogType = Literal["destination", "tagger"]
def compile_ai_observability_hog(source: str, hog_type: AIObservabilityHogType) -> list[Any]:
return compile_hog(source, hog_type, null_safe_comparisons=True)