Open ndhoule opened 9 years ago
From @jivinivan on December 1, 2014 19:16
:+1:
looked up sentry docs for how to do this but can't find any examples of this. closing due to inactivity + lack of context here.
https://docs.getsentry.com/hosted/clients/javascript/integrations/ Example for angular I think it should be something along:
<% plugins = ['angular', 'console'] %>
<script src="https://cdn.ravenjs.com/2.3.0/<%= plugins.join(',') %>/raven.min.js"></script>
<!-- instead of -->
<script src="https://cdn.ravenjs.com/2.3.0/raven.min.js"></script>
For Angular, the main issue is that users have to make sure that raven+angular is loaded before bootstraping their app.
Thanks! I'll reopen it and triage this issue internally -- happy to accept PRs in the meantime though! :)
up again, Seems that Raven CDN exposes their plugins as well at http://ravenjs.com/ hope this could help.
If instead of loading https://cdn.ravenjs.com/3.17.0/raven.min.js
you provide the possibility to load
https://cdn.ravenjs.com/3.17.0/angular/raven.min.js
it would make the use of sentry and segment within an Angular app seemless ;)
cc @anoonan
From @ianstormtaylor on June 7, 2014 1:21
Sentry lets you add plugins when loading their library, would be good to let the user pass in which plugins they'd like to load.
Copied from original issue: segmentio/analytics.js-integrations#197