Log when events are written to Clickhouse (#9875)

This PR adds some logging when we write events to Clickhouse in `POST
/telemetry/events`, for observability purposes.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-03-27 12:33:34 -04:00 committed by GitHub
parent 3f5f64a044
commit b1ad60a2ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -459,6 +459,12 @@ impl ToUpload {
}
insert.end().await?;
let event_count = rows.len();
log::info!(
"wrote {event_count} {event_specifier} to '{table}'",
event_specifier = if event_count == 1 { "event" } else { "events" }
);
}
Ok(())