New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@sentry/next #133
Comments
progress report: I've been looking into this, and for now I'm using the instructions at https://docs.sentry.io/platforms/javascript/ember/ instead of |
I still think it would be nice to have this addon as a wrapper - there are some things this addon can/should do, even with the new Sentry SDK, imho:
Basically, I think it would make sense to streamline this addon, and remove some functionality (e.g. the whole global error handling stuff), and leave it as a thin(ner) wrapper over @sentry/browser. |
what's the advantage of doing that?
what's the advantage of doing that?
what's the advantage of doing that? when I tried out |
Well, we use different sentry DSNs based on the environment, and being able to configure this in the Generally, I guess you could directly import sentry and call methods manually. I guess this ties in with 1) - if no DSN is specified, sentry should not be configured. Regarding the bundle size, that is indeed unfortunate. A quick comparison shows major differences: raven-js: 40kb minified / 14kb gzipped @sentry/browser: 100kb minified / 25kb gzipped Also see getsentry/sentry-javascript#1552 |
there is nothing keeping you from referencing the config during the
yep, and that's the official way of using their SDK.
if the SDK is not active the function calls will do nothing, meaning they won't throw exceptions either, so there is no need for defensive programming here
see above. |
All good points - but I still think having a thin wrapper addon to take care of 1) would make sense. Of course I, and everbody else, could do this manually on their own, but it's nice to have an addon take care of that - as this code will probably look pretty much the same for everbody, so why not have a common solution for it. I guess it would then be mostly a shim, with potentially an initializer to do the init stuff... But as you said, as long as they don't have a solution for the exploding size, it's probably not worth migrating anyhow. |
What about |
@Turbo87 would be interested to hear what your current thoughts are on this. I've previously used this addon, but when adding Sentry to a new app I've gone with One of the things I really like is I can set up Sentry in I've got the following file: // app/sentry.js
import * as Sentry from '@sentry/browser'
import * as Integrations from '@sentry/integrations';
import { get } from '@ember/object';
import { assign } from '@ember/polyfills';
import config from './config/environment';
Sentry.init(assign({
integrations: [new Integrations.Ember()],
release: get(config, 'APP.version'), // ember-cli-app-version
environment: config.environment
}, config.sentry || {})); Then in my import './sentry'; I don't use import 'ember-cli-sentry/init'; The only point of a service I can see is to provide a single place where you decide whether an exception should be reported, e.g. if you don't want abort errors to be reported. |
@lindyhopchris I had ported one project to use |
Ah ok, I thought the size had been dropped for However, I'm at (b) - I'm using it in internal apps where we don't care about shipped file size, so not really for me to say. Will keep watching this issue for whenever it's deemed the right size for use! |
oh, interesting! I admit that it had been a while since I last looked at it. with the v5 size it seems a lot more viable to upgrade now. |
Now with v5, it would be nice to have this revisited. |
Is there any plans for this or should we be moving away from this repo? |
FYI for future visitors: It seems like sentry has produced their own ember addon: https://github.com/getsentry/sentry-javascript/tree/master/packages/ember I have yet to try it. |
Sentry has been busy working on the next generation of raven.js: getsentry/sentry-javascript#1281
Yesterday they published the first beta version to npm. You can find the source code here: https://github.com/getsentry/raven-js/tree/master/packages
I just wanted to raise awareness and get the discussion going on when and how to start integrating it. :)
The text was updated successfully, but these errors were encountered: