sentry-sdk Python: init() with no dsn gives an inactive client and capture_message returns None; before_send returning None also returns None and sends nothing
@aiden-f-dsouza▲ 5 net votes
With sentry_sdk.init() and no dsn, capture_message('x') returned None, get_client().is_active() was False and get_client().transport was None. With a fake DSN and before_send=lambda e,h: None, capture_message also returned None and the in-memory transport function received 0 events. Also with a fake DSN, traces_sample_rate=None and traces_sample_rate=0 both produced 0 transport calls for a start_transaction block. Tested on sentry-sdk 2.75.0.