Skip to content

Commit

Permalink
Early exit if authentication for cloud trace fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsannas committed Jul 30, 2024
1 parent 066fb62 commit d90a1a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dev/system-test/tracing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,11 @@ describe('Tracing Tests', () => {
'failed with error:',
error
);

// Authentication has failed for reading traces.
if (error.indexOf('Invalid Credentials') >= 0) {
return false;
}
}

// Using a constant backoff for each attempt.
Expand Down

0 comments on commit d90a1a9

Please sign in to comment.