-
-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: introduce release-health
feature
#749
base: master
Are you sure you want to change the base?
feat: introduce release-health
feature
#749
Conversation
release-health
featurerelease-health
feature
ebfd2ad
to
32bc709
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks.
I have tried making sentry-core/src/session.rs
into a mod
to have just a single #[cfg(feature = "release-health")]
there, but that way you would need to add it to other places in sentry-core
. I prefer having it appear more often in session.rs
itself rather than propagating to other files
let session_flusher = RwLock::new(Some(SessionFlusher::new( | ||
transport.clone(), | ||
self.options.session_mode, | ||
))); | ||
#[cfg(not(feature = "release-health"))] | ||
let session_flusher = RwLock::new(None); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it might be a bit more work, but avoiding the Client.session_flusher
field altogether would be slightly more efficient.
Resolves #748 by introducing a new feature enabled by default named
release-health