Skip to content

Commit 5edf6cf

Browse files
authored
fix: Add more information if rav request is timing out (#325)
1 parent 09b36a6 commit 5edf6cf

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tap-agent/src/agent/sender_allocation.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,16 @@ impl SenderAllocationState {
554554
previous_rav
555555
),
556556
)
557-
.await?;
557+
.await
558+
.inspect_err(|err| {
559+
if let jsonrpsee::core::ClientError::RequestTimeout = &err {
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+
If the problem persists after doing so please open an issue"
564+
);
565+
}
566+
})?;
558567

559568
let rav_response_time = rav_response_time_start.elapsed();
560569
RAV_RESPONSE_TIME

0 commit comments

Comments
 (0)