mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 16:51:13 -05:00
Refactor: Remove Cronitor RUM tracking
This commit is contained in:
@@ -243,28 +243,9 @@ export async function withRetry<T>(
|
||||
error: error instanceof Error ? error.message : String(error)
|
||||
});
|
||||
|
||||
// Track exhausted retries in Cronitor
|
||||
if (typeof window !== 'undefined' && window.cronitor) {
|
||||
window.cronitor.track('retries_exhausted', {
|
||||
totalAttempts: config.maxAttempts,
|
||||
error: error instanceof Error ? error.name : 'UnknownError',
|
||||
severity: 'high',
|
||||
});
|
||||
}
|
||||
|
||||
throw error;
|
||||
}
|
||||
|
||||
// Track retry attempts in Cronitor
|
||||
if (attempt > 0 && typeof window !== 'undefined' && window.cronitor) {
|
||||
window.cronitor.track('retry_attempt', {
|
||||
attempt: attempt + 1,
|
||||
maxAttempts: config.maxAttempts,
|
||||
error: error instanceof Error ? error.name : 'UnknownError',
|
||||
willRetry: attempt < config.maxAttempts - 1,
|
||||
});
|
||||
}
|
||||
|
||||
// Calculate delay for next attempt
|
||||
const delay = calculateBackoffDelay(attempt, config);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user