Skip to content

Commit 9b47de7

Browse files
authored
chore: add log about presign elapsed (#14990)
* add log about presign elapsed * update
1 parent ed740cb commit 9b47de7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/query/service/src/interpreters/interpreter_presign.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ use databend_common_expression::Value;
2424
use databend_common_storages_stage::StageTable;
2525
use jsonb::Value as JsonbValue;
2626
use log::debug;
27+
use log::info;
2728

2829
use crate::interpreters::Interpreter;
2930
use crate::pipelines::PipelineBuildResult;
@@ -66,6 +67,7 @@ impl Interpreter for PresignInterpreter {
6667
));
6768
}
6869

70+
let start_time = std::time::Instant::now();
6971
let presigned_req = match self.plan.action {
7072
PresignAction::Download => op.presign_read(&self.plan.path, self.plan.expire).await?,
7173
PresignAction::Upload => {
@@ -76,6 +78,10 @@ impl Interpreter for PresignInterpreter {
7678
fut.await?
7779
}
7880
};
81+
info!(
82+
"query_id" = self.ctx.get_id();
83+
"presign {:?} {} success in {}ms", self.plan.action, self.plan.path, start_time.elapsed().as_millis()
84+
);
7985

8086
let header = JsonbValue::Object(
8187
presigned_req

0 commit comments

Comments
 (0)