You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's expected for the developer to call Sentry.init with custom options (see), to set e.g. environment or DSN information.
However, the sentry_ruby appender already calls Sentry.inithere to set a custom logger. Every call to Sentry.init deletes the previous set configuration. Current state of implementation only gives us two options:
Don't use Sentry.init - not doable since some config options are only available through that method
Re-initialize Sentry adding the customer logger again (since previous config is deleted). For this case, since Sentry.init is called after initializing the appender, the logger configuration is reset:
There should be a way to initialize Sentry outside the appender initialization. I would recommend against passing additional Sentry config options to the appender since e.g. sentry-rails also assumes Sentry.init initialization to be called on a specific file config/initializers/sentry.rb.
Pull Request
I could write a PR but would like to discuss options first.
The text was updated successfully, but these errors were encountered:
Environment
Provide at least:
Expected Behavior
It's expected for the developer to call
Sentry.init
with custom options (see), to set e.g. environment or DSN information.However, the
sentry_ruby
appender already callsSentry.init
here to set a custom logger. Every call toSentry.init
deletes the previous set configuration. Current state of implementation only gives us two options:Sentry.init
- not doable since some config options are only available through that methodSentry.init
is called after initializing the appender, the logger configuration is reset:Actual Behavior
There should be a way to initialize Sentry outside the appender initialization. I would recommend against passing additional Sentry config options to the appender since e.g.
sentry-rails
also assumesSentry.init
initialization to be called on a specific fileconfig/initializers/sentry.rb
.Pull Request
I could write a PR but would like to discuss options first.
The text was updated successfully, but these errors were encountered: