: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
// Telemetry sink for the recipe normalizer. Kept injectable so the normalizer
// stays portable to Node (MCP server, tasks sandbox) — the browser wires a
// `posthog.capture` callback via `setNormalizerTelemetry`; elsewhere it's a noop.
type NormalizerTelemetryCallback = (event: string, properties: Record<string, unknown>) => void
let telemetryCallback: NormalizerTelemetryCallback = () => {}
export function setNormalizerTelemetry(callback: NormalizerTelemetryCallback): void {
telemetryCallback = callback
}
export function emitNormalizerTelemetry(event: string, properties: Record<string, unknown>): void {
telemetryCallback(event, properties)
}