Skip to content

feat: added Get/Set Environment on Scope#5772

Draft
bitsandfoxes wants to merge 1 commit into
mainfrom
feat/scope-set-environment
Draft

feat: added Get/Set Environment on Scope#5772
bitsandfoxes wants to merge 1 commit into
mainfrom
feat/scope-set-environment

Conversation

@bitsandfoxes

Copy link
Copy Markdown
Contributor

📜 Description

Adds a getter and setter to the scope that allows users to configure the Environment at runtime.

💡 Motivation and Context

See #5769

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.

🔮 Next steps

@github-actions

Copy link
Copy Markdown
Contributor
Fails
🚫 Please consider adding a changelog entry for the next release.
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

### Features

- added `Get/Set Environment` on `Scope` ([#5772](https://github.com/getsentry/sentry-java/pull/5772))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description or adding a skip-changelog label.

Generated by 🚫 dangerJS against 23fc214

@sentry

sentry Bot commented Jul 16, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.49.0 (1) release

⚙️ sentry-android Build Distribution Settings

@github-actions

Copy link
Copy Markdown
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 319.11 ms 381.14 ms 62.03 ms
Size 0 B 0 B 0 B

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
382d6c1 306.85 ms 368.70 ms 61.85 ms
e63ad34 323.67 ms 390.33 ms 66.67 ms
91bb874 310.68 ms 359.24 ms 48.56 ms
5865051 324.24 ms 356.02 ms 31.78 ms
806307f 357.85 ms 424.64 ms 66.79 ms
b193867 331.08 ms 397.06 ms 65.98 ms
0eaac1e 322.53 ms 389.31 ms 66.78 ms
6405ec5 310.88 ms 354.56 ms 43.69 ms
d15471f 310.66 ms 368.19 ms 57.53 ms
951caf7 323.66 ms 392.82 ms 69.16 ms

App size

Revision Plain With Sentry Diff
382d6c1 1.58 MiB 2.29 MiB 719.85 KiB
e63ad34 0 B 0 B 0 B
91bb874 1.58 MiB 2.13 MiB 559.07 KiB
5865051 0 B 0 B 0 B
806307f 1.58 MiB 2.10 MiB 533.42 KiB
b193867 1.58 MiB 2.19 MiB 620.00 KiB
0eaac1e 1.58 MiB 2.19 MiB 619.17 KiB
6405ec5 1.58 MiB 2.12 MiB 552.23 KiB
d15471f 1.58 MiB 2.13 MiB 559.54 KiB
951caf7 1.58 MiB 2.13 MiB 558.77 KiB

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.

1 participant