-
Notifications
You must be signed in to change notification settings - Fork 212
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
Is there anyway to make transform respect the scrubFields options? #1084
Comments
The transform function in the Rollbar config runs after the scrubber. Data added or modified there needs to be safe, or redacted as needed by the user function. To send the request object and have it redacted by the scrubber, it should be passed as an argument to Rollbar.error(err, request) This works if:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have cases where I need to call Rollbar directly in my express code without relying on the middleware error handler. Which means I don't have access to the request object by default. So what I do is create a top-level middleware function that adds the request object to the Rollbar payload as the first order of business.
However when I do this, none of the scrubFields options are respected.
The text was updated successfully, but these errors were encountered: