feat: add sentry_set_release/environment by jpnurmi · Pull Request #1555 · getsentry/sentry-native
Add post-init setters for release and environment, allowing apps to update these values after SDK init without full re-init. The new values are stored on the scope (like user), keeping options immutable after init. Sessions pick up the new values when manually started after calling the setters. Close: #1516 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
and others added 3 commits
March 5, 2026 18:55Acquire options lock before scope lock in sentry_set_release_n and sentry_set_environment_n to match the lock order used by sentry_init (options → scope), fixing a potential deadlock detected by TSan. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jpnurmi
marked this pull request as ready for review
`sentry_start_session()` already holds the scope lock, so pass the scope pointer directly instead of re-acquiring it inside `sentry__session_new()`. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jpnurmi
deleted the
jpnurmi/feat/update-release-env
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters