refactor(telemetry): enhance flushToClearcut method with retry logic and early return for empty events (#1601)

Co-authored-by: Scott Densmore <scottdensmore@mac.com>
This commit is contained in:
Hyeladi Bassi
2025-07-27 19:18:27 +01:00
committed by GitHub
parent c45c14ee0e
commit 1f013c969f
3 changed files with 76 additions and 61 deletions

View File

@@ -10,6 +10,10 @@ import {
isGenericQuotaExceededError,
} from './quotaErrorDetection.js';
export interface HttpError extends Error {
status?: number;
}
export interface RetryOptions {
maxAttempts: number;
initialDelayMs: number;