mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-26 06:22:42 +03:00
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:
parent
3f5f64a044
commit
b1ad60a2ef
@ -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(())
|
||||
|
Loading…
Reference in New Issue
Block a user