docs: BIT-SMOKE ingest noise and BIT-309 recurrence after deploy
Clarify in RUNBOOK_INGEST_DEBUG and ingest-hardening runbook that BIT-SMOKE- events are filtered using message or client stacktrace, and that BIT-309 reopenings after a hub fix usually mean production ingest is behind master. Paperclip-Issue: BIT-942 Made-with: Cursor
This commit is contained in:
1 parent
d88c56de26
commit
eab0fbb1fa
2 files changed
+2
-1
No files matched your search
@@ -18,6 +18,7 @@
|
||||
3. **Credentials:** `Authorization: Bearer <token>` or `X-Api-Key`; key must be **active** and **unexpired** in `er_ingest_keys` (§2).
|
||||
4. **HTTP codes:** `401` / `429` / `5xx` / timeouts — use sections below; CRM cURL timeouts are short (e.g. 4s) — slow proxies can fail smokes before the hub responds.
|
||||
5. **HTTP 400 from schema validation** should be rare; the hub ignores unknown **event-level** JSON keys and unknown **top-level** keys on the batch object (only `events` is required). Required per event: `schema_version`, `occurred_at`, `level`, `message`.
|
||||
6. **Intentional throw smokes (`BIT-SMOKE-*`)** — some reporters POST a deliberate error (e.g. `BIT-SMOKE-WDMI-DIRECT-INGEST`) to prove the pipe works. The ingest API **noise-filters** these when `BIT-SMOKE-` appears in the event `message` or client `stacktrace` (`noise_ruleset_version` from `noisePolicy.ts`; see [ingest-hardening-runbook](operations/ingest-hardening-runbook.md)). Expect `skipped: true` / `rule_id: bitreport_smoke_marker` and **no** new incident. If [BIT-309](/BIT/issues/BIT-309) reopens a closed smoke ticket after the hub change merged, treat as **production ingest not yet running that build** ([BIT-942](/BIT/issues/BIT-942)).
|
||||
|
||||
**After the root cause is fixed**
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ Per-key overrides: set `rate_limit_max` and/or `rate_limit_window_ms` on the key
|
||||
|
||||
- Rules live in `ingest-api/src/lib/noisePolicy.ts`; ruleset id: `noise_ruleset_version` in the ingest response.
|
||||
- **Check:** send a known-noise payload (for example ResizeObserver message at non-fatal level); expect `skipped: true`, `noise_filtered_count` incremented, and no new `er_incidents` row.
|
||||
- **Check:** send the same pattern at `fatal` / `critical` level; expect **not** skipped (noise rules do not hide critical), **except** messages containing reserved substring `BIT-SMOKE-` (intentional reporter smoke, e.g. wdmi-store `/smoke/wdmi.js`) — those are skipped at every level (`rule_id`: `bitreport_smoke_marker`).
|
||||
- **Check:** send the same pattern at `fatal` / `critical` level; expect **not** skipped (noise rules do not hide critical), **except** when the **message** or **client-provided stacktrace** contains reserved substring `BIT-SMOKE-` (intentional reporter smoke, e.g. wdmi-store `/smoke/wdmi.js`, CRM `/smoke/crm-main.php`) — those are skipped at every level (`rule_id`: `bitreport_smoke_marker`).
|
||||
|
||||
## Rate limits
|
||||
|
||||
|
||||
Reference in new issue
Block a user