Skip to content

Commit 8a47504

Browse files
committed
fix: Add more information if rav request is timing out
1 parent c693f0e commit 8a47504

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tap-agent/src/agent/sender_allocation.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,18 @@ impl SenderAllocationState {
554554
previous_rav
555555
),
556556
)
557-
.await?;
557+
.await
558+
.inspect_err(|err| match &err {
559+
jsonrpsee::core::ClientError::RequestTimeout => {
560+
warn!(
561+
"Rav request is timing out, maybe request_timeout_secs is too \
562+
low in your config file, try adding more secs to the value"
563+
);
564+
}
565+
_ => {
566+
warn!("An error occured {:?}", err);
567+
}
568+
})?;
558569

559570
let rav_response_time = rav_response_time_start.elapsed();
560571
RAV_RESPONSE_TIME

0 commit comments

Comments
 (0)