Refactor: Remove Cronitor RUM tracking

This commit is contained in:
gpt-engineer-app[bot]
2025-11-05 15:59:05 +00:00
parent 1f93e7433b
commit 6e1ff944c8
6 changed files with 56 additions and 184 deletions

View File

@@ -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);