Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion crates/buzz-relay/src/api/bridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -654,12 +654,13 @@ pub async fn submit_event(
submit_event_authed(&state, &tenant, &headers, &body, pubkey, event_id_bytes).await;

match &outcome {
SubmitOutcome::Ok { accepted, .. } => {
SubmitOutcome::Ok { accepted, kind, .. } => {
tracing::info!(
pubkey = %pubkey_hex,
route = "/events",
status = 200u16,
accepted,
kind,
"HTTP bridge request"
);
}
Expand Down Expand Up @@ -713,6 +714,10 @@ enum SubmitOutcome {
/// Ingest pipeline ran and returned a result (accepted or not).
Ok {
accepted: bool,
/// Event kind, so an accepted message (kind 9) is distinguishable in
/// the log from an accepted typing indicator (kind 7) or deletion
/// (kind 5) — all of which travel the same `/events` route.
kind: u32,
response: Json<Value>,
},
/// JSON parse failure before ingest — log category/line/column, not msg.
Expand Down Expand Up @@ -843,6 +848,7 @@ async fn submit_event_authed(
}));
SubmitOutcome::Ok {
accepted: result.accepted,
kind: kind_u32,
response,
}
}
Expand Down