Deb Paine opened merge request !116: Draft: [Feat] Provision to capture bad/failed events and store them in Clickhouse at GitLab.org / Analytics Section / pl...

Deb Paine
2026-03-30T12:52:20Z

This MR is for work item 107. It has the following things:

Capture the bad/failed events and store them in bad_events table in Clickhouse.

Initially, bad/failed events were stored in JetStream and were not exported anywhere.

Now, the events are stored in ClickHouse and are bucketed in the following categories: size_violation, enrichment_failures, schema_violations, adapter_failures, and unknown .

The bad/failed events are sent directly to enriched_events.%d.bad subject where we can have a Clickhouse exporter exporting these events to bad_events table.

Added tests.