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
Sentry.addBreadcrumb({message: 'My Breadcrumb'});Sentry.withScope(scope=>{scope.setTag("my-tag","my value");scope.setLevel('warning');scope.addBreadcrumb({message: 'scope breadcrumb'});// will be tagged with my-tag="my value"Sentry.captureException(newError('oops!'));});
Running the following code
will result in an isse with only 2 breadcrums:
generic | My Breadcrumb
exception | Error: oops!
I would expect to see the scope breadcrumb on the list of breadcrums. How can I capture an exception within a local scope, so that scope breadcrumbs are also reported?
The text was updated successfully, but these errors were encountered:
Having the same issue with @sentry/node 5.29.0. Breadcrumbs won't be displayed in Sentry when using scope.addBreadcrumbs but will with Sentry.addBreadcrumbs.
As a matter of fact, the scope version won't trigger the beforeBreadcrumb
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node
(raven for node)Version:
Description
I'm not sure if this is a bug or a lack of clear documentation.
The following code is a slightly modified snipped taken from https://docs.sentry.io/enriching-error-data/scopes/?platform=javascript
Running the following code
will result in an isse with only 2 breadcrums:
I would expect to see the
scope breadcrumb
on the list of breadcrums. How can I capture an exception within a local scope, so that scope breadcrumbs are also reported?The text was updated successfully, but these errors were encountered: