segment-integrations / analytics.js-integration-sentry

The Sentry analytics.js integration.
https://segment.com/docs/integrations/sentry/
MIT License
3 stars 7 forks source link

pass in config to sentry #2

Closed ndhoule closed 9 years ago

ndhoule commented 9 years ago

From @ianstormtaylor on June 7, 2014 1:21

Sentry allows for a series of configuration options, would be nice to support at least some of the more important ones.

Copied from original issue: segmentio/analytics.js-integrations#198

ndhoule commented 9 years ago

From @amccloud on September 17, 2014 3:22

This would be a nice thing to enable: http://raven-js.readthedocs.org/en/latest/tips/index.html#decluttering-sentry

ndhoule commented 9 years ago

From @cgarvis on November 18, 2014 16:49

It would also be nice to be able to pass in the app version to Sentry: https://www.getsentry.com/docs/tags/

ndhoule commented 9 years ago

From @jivinivan on December 1, 2014 19:14

:+1: This would also be very useful to us.

ndhoule commented 9 years ago

From @chaselee on December 1, 2014 19:35

:+1:

ndhoule commented 9 years ago

From @sperand-io on January 20, 2015 21:56

FYI, +1 from another customer here @ndhoule @amillet89 @harrietgrace :)

https://segment.zendesk.com/agent/tickets/22659

simpixelated commented 7 years ago

This issue was closed over a year ago, but I wasn't able to find any clear documentation on whether it's fixed or not. But for anyone else looking to solve the problem, I was able to update Raven.config on the fly by calling the Raven specific methods:

window.analytics.ready(() => {
    window.Raven.setRelease(__VERSION__);
});

There may be an easier way to do this, but it works for me.

For reference: