Skip to content
Source
Sign inSign up
TanStack/schemas

Log each ingest event to Workers Logs as structured JSON #100002

Send to my agent
Closedtombeckenham opened this issue 1 comment
tombeckenhamcommented

Ingest events (ingest_failed, pricing_lost, update_storm, …) only reach PostHog. captureIngestEvents (src/server/ingest/ingest-signals.ts) should also console.log each event as one JSON line ({ event, ...properties }) before the PostHog send, so Workers Logs (observability is on) can be queried by providerId/reason when PostHog is unavailable or unkeyed. Log even when POSTHOG_API_KEY is absent.

  1. tombeckenham linked this to #683

  2. Merged in #683, deployed as aa78dec3.

  3. tombeckenham closed this

Sign in to join this conversation.