Skip to content

Commit

Permalink
chore: Capture config rendering errors as a Sentry error event
Browse files Browse the repository at this point in the history
  • Loading branch information
dashed committed Dec 11, 2023
1 parent 88f8dbe commit 1055ebe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/configPolling.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as Sentry from '@sentry/node';
import fetch from 'node-fetch';

import ConfigService from './config';
Expand Down Expand Up @@ -75,7 +76,7 @@ export default class ConfigPoller {
} else {
logger.warn(`Failed to resolve config while polling with error: ${error}`);
}

Sentry.captureException(error);
return;
}

Expand Down

0 comments on commit 1055ebe

Please sign in to comment.