I am using the latest version sentry-SDK with python3.
I have configured my sentry as follows in settings.py
def before_send(event, hint):
log.info("Before Sending the Event, {} and Hint : {}".format(repr(event), repr(hint)))
return event
def init_sentry():
sentry_sdk.init(dsn=SENTRY_DSN, environment=ENVIRONMENT,
attach_stacktrace=True, before_send=before_send)
log.info("Sentry Initialized")
When some event got captured. I am able to check in log file for event in before_send.
But not received in actual sentry dashboard.