Skip to content

Commit d0cb344

Browse files
chore(pgwire): add start of execution logs for all queries (#24079) (#24090)
Co-authored-by: Noel Kwan <[email protected]>
1 parent 1eef375 commit d0cb344

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/utils/pgwire/src/pg_protocol.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,13 @@ where
391391

392392
// Query log.
393393
let fut = async move {
394+
if !tracing::Span::current().is_none() {
395+
tracing::info!(
396+
target: PGWIRE_QUERY_LOG,
397+
status = "started",
398+
);
399+
}
400+
394401
let start = Instant::now();
395402
let result = fut.await;
396403
let elapsed = start.elapsed();

0 commit comments

Comments
 (0)