Skip to content

fix(core): Remove native scope tags set to an empty value - #7087

Merged
antonis merged 2 commits into
mainfrom
antonis/native-empty-tag-removal
Nov 23, 2026
Merged

antonis merged 2 commits into
mainfrom
antonis/native-empty-tag-removal

Conversation

@antonis

@antonis antonis commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Native setTag now removes the tag from the native scope when the value is empty or nil, instead of storing an empty string.

💡 Motivation and Context

While testing I've noticed the following processing error

Screenshot 2026-11-23 at 13 04 21

Follow-up to #6502 / #6506.

💚 How did you test it?

📝 Checklist

  • I added tests to verify 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.
  • All tests passing.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.
  • No breaking changes.

🔮 Next steps

antonis and others added 2 commits November 23, 2026 13:22
The TurboModuleContext integration clears its tags with an empty-string
sentinel. Scope sync forwarded it to the native scopes, so events created
natively (MetricKit diagnostics, native crashes, app hangs) carried empty
`turbo_module.*` tags that ingestion discards with a processing error.

Native `setTag` now removes the tag for empty or nil values on iOS and
Android.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Semver Impact of This PR

⚪ None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


  • fix(core): Remove native scope tags set to an empty value by antonis and claude in #7087
  • feat(ios): Add metricKitHangReportingMode option for MetricKit hang flame graphs by alwx in #7059
  • chore(deps): bump getsentry/craft from 3.12.0 to 3.13.0 by dependabot in #7083
  • chore(deps): bump getsentry/craft/.github/workflows/changelog-preview.yml from 3.12.0 to 3.13.0 by dependabot in #7082
  • chore(deps): bump getsentry/github-workflows/danger from 6bf4a27612e388f9c113d64f75e25190e814b414 to bce11fe6eaa86dbb9d360ab45a96e659828877f0 by dependabot in #7081
  • chore(deps): bump actions/create-github-app-token from 3.3.0 to 3.4.0 by dependabot in #7085
  • chore(deps): bump ruby/setup-ruby from 1.338.0 to 1.342.0 by dependabot in #7084
  • chore(sample): Remove unused Detox setup from the React Native sample by antonis and claude in #7072
  • ci(ios): Build TestFlight sample with Xcode 27 by philprime with sentry-junior in #7065
  • perf(android): Create SDK view managers on demand by alwx in #7049
  • fix(core): Remove web Replay and Feedback from native bundles by default by huextrat, claude and antonis in #7062
  • fix(core): Define UnsafeObject locally instead of deep importing it by alwx in #7061
  • chore(deps): update Android SDK to v8.65.0 by github-actions in #7058

🤖 This preview updates automatically when you update the PR.

@antonis antonis added the ready-to-merge Triggers the full CI test suite label Nov 23, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 2ae3bf0. Configure here.

@antonis
antonis marked this pull request as ready for review November 23, 2026 12:33
@sentry

sentry Bot commented Nov 23, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
Sentry RN io.sentry.reactnative.sample 8.36.0 (116) Release

⚙️ sentry-react-native Build Distribution Settings

@antonis
antonis merged commit a988643 into main Nov 23, 2026
124 of 130 checks passed
@antonis
antonis deleted the antonis/native-empty-tag-removal branch November 23, 2026 13:28
antonis added a commit that referenced this pull request Nov 24, 2026
Scenarios were one-off per PR and nothing runs them, so a shared folder
would grow and rot. Move the #7087 flow to flows/examples/ as the worked
example and regression check, write each run's flow next to its report,
and promote to flows/steps/ only when a second run needs it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
antonis added a commit that referenced this pull request Nov 26, 2026
)

* chore(tooling): Add verify-pr skill for on-device PR verification

Adds a local skill that verifies a PR end to end on an Android emulator:
build the sample without and with the change, drive it with Maestro, find
both runs' events in sentry-sdks through the Sentry MCP, and write a draft
before/after report.

The sample tags events with verify.pr, verify.commit and verify.run_id
when launched with matching launch arguments, and does nothing otherwise.
It also enables logs in sentry.options.json, so native Android matches the
JS enableLogs setting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(tooling): Write verify-pr scenarios per run, not into the skill

Scenarios were one-off per PR and nothing runs them, so a shared folder
would grow and rot. Move the #7087 flow to flows/examples/ as the worked
example and regression check, write each run's flow next to its report,
and promote to flows/steps/ only when a second run needs it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
antonis added a commit that referenced this pull request Nov 26, 2026
* chore(tooling): Add verify-pr skill for on-device PR verification

Adds a local skill that verifies a PR end to end on an Android emulator:
build the sample without and with the change, drive it with Maestro, find
both runs' events in sentry-sdks through the Sentry MCP, and write a draft
before/after report.

The sample tags events with verify.pr, verify.commit and verify.run_id
when launched with matching launch arguments, and does nothing otherwise.
It also enables logs in sentry.options.json, so native Android matches the
JS enableLogs setting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(tooling): Write verify-pr scenarios per run, not into the skill

Scenarios were one-off per PR and nothing runs them, so a shared folder
would grow and rot. Move the #7087 flow to flows/examples/ as the worked
example and regression check, write each run's flow next to its report,
and promote to flows/steps/ only when a second run needs it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(tooling): Add iOS simulator support to the verify-pr skill

From verifying #7087 and #6974 on the iOS simulator: Pods setup and the
files pod install rewrites, the iOS init path, Maestro differences (no
`back`, tab icons and the Playground tab need ids), reading screenshot
attachments back from Sentry, and a two-color probe for masking checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(tooling): Fold iOS acceptance-run findings into verify-pr

Save the revert as a patch file, compare dist/ against packages/core/src,
define verify.commit for both sides, reinstall Pods every iOS run, shut
down booted devices, and keep attachment URLs out of reports.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(sample): Add a screenshot masking probe to the Playground tab

A two-color view inside the existing <Sentry.Mask> demo, plus a button
that captures an exception with the demo on screen. The view is neither
text nor an image, so only <Sentry.Mask> can hide it in the event's
screenshot; a masked probe is one flat color. Used to verify #6974.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(tooling): Add a pre-build gate and open-PR handling to verify-pr

From running the skill on open PRs (#7042, #7030): a "Not verifiable this
way" verdict decided before any build (build-only claims, triggers a
simulator can't produce, native APIs missing from the pinned SDK, low
disk), guidance for feature PRs and open PRs, checks for node_modules,
run tagging and spec codegen, release builds by default, and evidence
for replay recording content and JS-thread blocks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Triggers the full CI test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants