mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 22:34:13 +00: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
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue