Skip to content

feat: introduce release-health feature#749

Merged
lcian merged 14 commits intogetsentry:masterfrom
pepperoni505:release-health-feature-flag
Mar 28, 2025
Merged

feat: introduce release-health feature#749
lcian merged 14 commits intogetsentry:masterfrom
pepperoni505:release-health-feature-flag

Conversation

@pepperoni505
Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Comment thread sentry-core/src/client.rs Outdated
self.options.session_mode,
)));
#[cfg(not(feature = "release-health"))]
let session_flusher = RwLock::new(None);
Copy link
Copy Markdown
Contributor

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.

@lcian lcian merged commit 6a0ffeb into getsentry:master Mar 28, 2025
14 checks passed
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