Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Raven python processors API alternative

See original GitHub issue

In Raven python there was a processors param that could sanitize data client-side before sending to the server . After upgrading, I noticed that the processors API has been removed and replaced with before_send and a send_default_pii option. This has similar power, but requires a lot more setup than just adding processors raven.processors.SanitizePasswordsProcessor, etc.

What is the correct way to sanitize passwords, etc. now? It looks like passwords are not sanitized and sent to the Sentry server by default in the new version, which is not acceptable in my environment.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

iurisilviocommented, May 23, 2020

I migrated from raven to sentry-sdk and decided to still use raven processors. Here is the code if it is useful to anyone reaching this issue.

from raven.processors import SanitizeKeysProcessor, SanitizePasswordsProcessor

class FakeRavenClient:
    sanitize_keys = [

processors = [

def before_send(event, hint):
    for processor in processors:
        event = processor.process(event)
    return event

charmandercommented, Dec 23, 2021

Critical feature still missing or undocumented.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced Usage | Sentry Documentation
This covers some advanced usage scenarios for raven Python. Alternative Installations. If you want to use the latest git version you can get...
Read more >
Advanced Usage — Raven 5.32.0 documentation
This covers some advanced usage scenarios for raven Python. Alternative Installations¶ ... These are configured with the processors value. raven.processors.
Read more >
Software Infrastructure - RAVEN - Idaho National Laboratory
Hence, RAVEN is coded in Python and is characterized by an ... Aimed to provide standardized APIs for storing the results of any...
Read more >
Unified API - Sentry Developer Documentation
New Sentry SDKs should follow the unified API, use consistent terms to refer ... and explicitly support them as alternatives (disposables, stack guards...
Read more >
NoSQL Database | RavenDB ACID NoSQL Document Database
A NoSQL Database that's fully transactional - RavenDB NoSQL Document Database allows 1 million reads and 150000 writes per second.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found