You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Release version is created during deployment using ember-cli-deploy-revision-data plugin.
ember-cli-deploy-sentry uses this release version to upload source maps.
raven-js library uses ENV.APP.version when sending an exception report to sentry.
Where is the value of ENV.APP.version generated? No idea yet, will require a lot of reading of code. It is however, package version + git commit.
Is it possible to set ENV.APP.version during deployment? Doesn't seem possible to get access to the build information in environment.js.
I tried adding to my raven service:
importRavenfrom'ember-cli-sentry/services/raven';letreleaseMetaTag=document&&document.querySelector("meta[name='sentry:revision']");letrelease=releaseMetaTag&&releaseMetaTag.getAttribute('content');if(release){Raven.callRaven('setRelease',release);}exportdefaultRaven.extend({})// snipped the boilerplate
This fails. Should I instead use window.Raven directly? Is this even the correct place to do this?
I originally worked on this... it doesn't work as well as it should. The break (as you note correctly) is in that ENV.APP.version is used for sending an exception report, which was supposed to be meta[name='sentry:revision'] but has deviated from it, in a way that I don't recall.
This already was supposed to be happening (see 2a561ff) but something, somewhere went wrong...
Your Raven service sounds good - quite possibly we should stick something like that in an initializer instead of a service.
The readme says:
How is this supposed to work with ember-cli-sentry?
The text was updated successfully, but these errors were encountered: