Skip to content

feat(scope): add missing public mutators - #2011

Open
jpnurmi wants to merge 2 commits into
masterfrom
jpnurmi/feat/scope-mutators
Open

feat(scope): add missing public mutators#2011
jpnurmi wants to merge 2 commits into
masterfrom
jpnurmi/feat/scope-mutators

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Make the scope API more symmetric with the global scope and scope observer APIs by adding the following missing scope-level mutators: set_release, set_environment, set_transaction, remove_tag, remove_extra, remove_context, and remove_attachment.

Console SDKs currently update some of these fields through direct private sentry_scope_s access, coupling them with internal implementation details, and making scope refactoring (RW-locks) harder than it needs to be. :)

Add scope-specific release, environment, and transaction setters plus
tag, extra, context, and attachment removals. Route the corresponding
global APIs through the new functions.

This makes reusable scope mutation more symmetric with the global scope
API. Console SDKs currently update some of these fields through private
scope access, coupling them to internals and making scope refactors
(RW-locks) harder than it needs to be. :)
@github-actions

github-actions Bot commented Aug 21, 2026

Copy link
Copy Markdown
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 600c4b3

@limbonaut limbonaut left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet! 🍻

@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.55172% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.73%. Comparing base (69639a0) to head (600c4b3).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2011      +/-   ##
==========================================
+ Coverage   74.69%   74.73%   +0.03%     
==========================================
  Files         104      104              
  Lines       26182    26223      +41     
  Branches     4740     4743       +3     
==========================================
+ Hits        19557    19597      +40     
+ Misses       5295     5294       -1     
- Partials     1330     1332       +2     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

3 participants