Missing Sentry.setDataCallback
See original GitHub issue- Review the documentation: https://docs.sentry.io/
- Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
- Use the latest release: https://github.com/getsentry/sentry-javascript/releases
Package + Version
-
@sentry/browser
-
@sentry/node
-
raven-js
-
raven-node
(raven for node) - other:
Version:
4.0.2
Description
The previous version raven-js
had the ability to add setDataCallback
which was executed before data was sent out. Current version @sentry/browser
enables beforeSend
but it can be only set as part of the init
process.
Could you please add an ability to set beforeSend
callback also in a later stage? I am trying to fix my redux integration previously done using https://github.com/captbaritone/raven-for-redux/blob/master/index.js
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Using Errors to Understand our Users (Episode 2) - Sentry
Error tracking that helps developers monitor and fix crashes in real time. Iterate continuously. Boost workflow efficiency. Improve user experience.
Read more >raven-js | Yarn - Package Manager
3.23.0. NOTE: This release may introduce some new, previously uncaught errors that were silently occuring in the background. Your Sentry Issues stream may...
Read more >How to use the raven-js.isSetup function in raven-js - Snyk
To help you get started, we've selected a few raven-js.isSetup examples, based on popular ways it is used in public projects.
Read more >Sentry - LogRocket Docs
Integrating LogRocket with Sentry. ... Add a LogRocket session recording URL to every Sentry exception report. ... setDataCallback(data => { data.extra.
Read more >Overview - Joe Sandbox
... processes where analyzed, report is missing behavior information ... this.k.release=t,this},setDataCallback:function(t){var e=this.k.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey, you should be able to use an event processor.
So in any point in time you can do:
Hope this helps.
@cyounkins both are correct, but
beforeSend
can be set just once during initialization, whereeventProcessors
can be added anytime and they can also work for only specific events (scope) if desired. https://docs.sentry.io/platforms/node/#eventprocessors (JS docs are being reworked now, thus some parts may be missing, sorry about that)