Skip to content

Commit 21a2dae

Browse files
committed
fix: Retry trace fetching on Internal RPC errors in addition to NotFound and improve error logging.
1 parent b4e6372 commit 21a2dae

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/integration-tests/tests/telemetry.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,13 @@ mod telemetry {
128128
}
129129
Err(e) => {
130130
if let Some(status) = e.status() {
131-
if status.code == gax::error::rpc::Code::NotFound {
132-
println!("Trace not found yet, retrying...");
131+
if status.code == gax::error::rpc::Code::NotFound
132+
|| status.code == gax::error::rpc::Code::Internal
133+
{
134+
println!(
135+
"Trace not found yet (or internal error), retrying... Error: {:?}",
136+
e
137+
);
133138
continue;
134139
}
135140
}

0 commit comments

Comments
 (0)