Sentry quick info
Sentry accepts device-mode data only from Analytics.js.
Sentry is open-source error tracking that helps developers monitor and fix crashes in real time. Iterate continuously. Boost efficiency. Improve user experience. The
analytics.js Sentry Destination is open-source. You can browse the code on GitHub.
Before you start, make sure Sentry supports the source type and connection mode you’ve chosen to implement. You can learn more about connection modes here.
- From the Segment web app, click Catalog.
- Search for “Sentry” in the Catalog, select it, and choose which of your sources to connect the destination to.
- In the destination settings, enter your “Public DSN”.
- Segment automatically initializes Sentry with your “Public DSN” upon loading analytics.js.
If you’re not familiar with the Segment Specs, take a look to understand what the Identify method does. An example call would look like:
When you call
identify we call
Sentry.setUser by passing in the
traits you provided. We will map the
userId you provide as
Segment lets you change these destination settings from the Segment app without having to touch any code.
|Set Release by Property||
Toggle this setting to “true” to enable Sentry’s debug mode. In debug mode, the Sentry client will log activity to your browser’s console. No events will be sent to your Sentry instance when this setting is enabled.
A list of error messages to be filtered out before being sent to Sentry. You can add either regular expressions or strings.
The inverse of whitelistUrls and similar to ignoreErrors, but will ignore errors from whole urls matching a regex pattern or an exact string.
An array of regex patterns to indicate which urls are a part of your app in the stack trace. All other frames will appear collapsed in Sentry’s dashboard to make it easier to discern between frames that happened in your code versus other code. By default, Sentry displays all frames as expanded. Once you add values to this setting, all frames excepts for those you’ve added here will appear as collapsed in Sentry. You can still manually expand all frames from a stack trace in your Sentry dashboard. It would be suggested to add the current page url, and the host for your CDN here.
|Maximum Message Length||
Deprecated setting. By default, Raven does not truncate messages. If you need to truncate characters for whatever reason, you may set this to limit the length.
This page was last modified: 20 Oct 2020
Questions? Problems? Need more info? Contact us, and we can help!