Skip to content
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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

pepperoni505
Copy link

Resolves #748 by introducing a new feature enabled by default named release-health

@pepperoni505 pepperoni505 changed the title feat: introduce release-health feature feat: introduce release-health feature Mar 11, 2025
@pepperoni505 pepperoni505 marked this pull request as ready for review March 12, 2025 13:48
@pepperoni505 pepperoni505 force-pushed the release-health-feature-flag branch from ebfd2ad to 32bc709 Compare March 13, 2025 12:42
Copy link
Member

@lcian lcian left a 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

@lcian lcian requested a review from Swatinem March 20, 2025 14:11
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);
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gate release health behind a feature flag
3 participants