def before_send()

in nucleus/settings.py [0:0]


def before_send(event, hint):
    processor = DesensitizationProcessor(
        with_default_keys=True,
        # Enable the following if required:
        # sensitive_keys=SENSITIVE_FIELDS_TO_MASK_ENTIRELY,
        # Enable the following if required:
        # partial_keys=SENSITIVE_FIELDS_TO_MASK_PARTIALLY,
        # mask_position=POSITION.LEFT,  # from sentry_processor import POSITION (when you need it)
        # off_set=3,
    )
    event = processor.process(event, hint)
    return event