Skip to content

Commit

Permalink
Enable more Sentry integrations (#897)
Browse files Browse the repository at this point in the history
### Enable
[ExtraErrorData](https://docs.sentry.io/platforms/javascript/guides/react/configuration/integrations/extraerrordata/)
integration in Sentry.

This integration serialized extra data attached to the error event. It
is useful to attach additional context to the error event, as currently
the objects are not serialized and are visible as `[Object]` in the
Sentry dashboard.

### Enable
[HttpClient](https://docs.sentry.io/platforms/javascript/guides/react/configuration/integrations/httpclient/)
integration in Sentry.

This integration will capture failed requests and responses in Sentry.

-----
Refs: AENG-41.
  • Loading branch information
r-czajkowski authored Nov 26, 2024
2 parents bad4608 + 91b289a commit 9a943dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dapp/src/sentry/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const initialize = (dsn: string) => {
integrations: [
Sentry.browserTracingIntegration(),
Sentry.captureConsoleIntegration({ levels: ["error"] }),
Sentry.extraErrorDataIntegration(),
Sentry.httpClientIntegration(),
],
// Attach stacktrace to errors logged by `console.error`. This is useful for
// the `captureConsoleIntegration` integration.
Expand Down

0 comments on commit 9a943dd

Please sign in to comment.