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
{{ message }}
This repository was archived by the owner on Oct 23, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 23, 2023. It is now read-only.
It'd be great to have the option with the method captureMessage to enable a stack trace,
similar to raven-js. As of right now, it appears that captureException is the only way to get a stack trace.
Very nice to see implemented, though it looks to only be supported via a global flag being set (so all calls to captureMessage will attempt to get a stacktrace if so). Maybe adding a check for it in the options sent to captureMessage would be good as well?
captureMessage: function(msg,options){
...
if(this._globalOptions.stacktrace||(options&&options.stacktrace)){options=objectMerge({// fingerprint on msg, not stack trace (legacy behavior, could be// revisited)fingerprint: msg,// since we know this is a synthetic trace, the top N-most frames// MUST be from Raven.js, so mark them as in_app later by setting// trimHeadFramestrimHeadFrames: (options.trimHeadFrames||0)+1},options);
...
Activity
MaxBittker commentedon Jun 16, 2017
I think this makes sense, but not going to be a high priority issue right away. Thanks @BigPrimeNumbers
kamilogorek commentedon Oct 6, 2017
@BigPrimeNumbers done #388
Should be released on Monday morning.
BigPrimeNumbers commentedon Oct 25, 2017
Very nice to see implemented, though it looks to only be supported via a global flag being set (so all calls to
captureMessagewill attempt to get a stacktrace if so). Maybe adding a check for it in the options sent tocaptureMessagewould be good as well?raven-js version of
captureMessage:https://github.com/getsentry/raven-js/blob/master/src/raven.js#L498
kamilogorek commentedon Oct 27, 2017
This is easily doable and actually will help us unify both codebases. Reopened.