getsentry / raven-csharp

Superseded by: https://github.com/getsentry/sentry-dotnet
BSD 3-Clause "New" or "Revised" License
231 stars 121 forks source link

Development RavenClient #271

Closed braunsonm closed 6 years ago

braunsonm commented 6 years ago

Is there anyway to create a RavenClient without a DSN for development environments? I'd like to keep the SENTRY_DSN as a environment variable only set in production.

However because the RavenClient raises an exception if the DSN is null this breaks any code that uses the raven client in a dev environment.

Is there a suggested way of handling this? This method of not passing in a DSN works on the Python client, allowing it to act sort of as a "dummy".

braunsonm commented 6 years ago

This is possible in the new client.