Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow OTEL instrumenter to work even with no DSN.
Context: we are writing tests for our Sentry integration itself, setting up a client like ```py events = [] c = sentry_sdk.Client(dsn=None, instrumenter='otel', transport=events.append) ``` , and verifying that events contains spans from OpenTelemetry such as ```py with tracer.start_as_current_span('fn'): raise Exception('boo') assert events = [...] ``` This currently doesn't work because the Sentry OTEL integration has some hacks poking into the client and hard-exiting if DSN is None. I conjecture this can be removed - the check-DSN-to-avoid-sentry-otel-loops logic still works even without the DSN check in on_start().
- Loading branch information