Skip to content

Conversation

@jasonyuezhang
Copy link
Owner

This PR addresses Linear ID-1344 by improving the default highlights section for mobile SDK issues.

Based on feedback from the mobile team, the highlights were previously sparse and lacked actionable debugging information. This change updates the MOBILE_HIGHLIGHTS preset to include more relevant tags and context keys, such as device.class, release, main_thread, user, low_memory, in_foreground, locale, and user.geo.country_code. Less useful items like trace.trace_id and profile.profile_id have been removed.

A new test has been added to ensure the mobile highlight preset is correctly applied.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.


Linear Issue: ID-1344

Open in Cursor Open in Web


Copied from getsentry#107904
Original PR: getsentry#107904

cursoragent and others added 2 commits February 9, 2026 16:28
Based on feedback from the mobile team, updated the default highlights
configuration for mobile platforms to show more relevant information:

Added tags:
- device.class
- release
- user

Added context keys:
- device: low_memory, locale
- app: in_foreground
- user: geo.country_code

Removed less useful context:
- trace.trace_id (redundant with trace preview)
- profile.profile_id (almost always empty)
- mobile tag (not very informative)

This change affects Android, Apple (iOS/macOS), React Native, and other
mobile platforms.

Refs: ID-1344

Co-authored-by: Charlie Luo <cvxluo@gmail.com>
@propel-test-bot
Copy link

propel-test-bot bot commented Feb 10, 2026

🚨 2 CI Failures

Workflow Why Link
Enforce License Compliance 9798c12 License compliance check only runs on getsentry/codecov repos, but this PR is on fork jasonyuezhang/sentry View
getsentry dispatcher 9798c12 GitHub App token generation failed because required appId parameter was not provided to getsentry/action-github-app-token action View

@propel-test-bot
Copy link

It also removes the previous generic mobile tag from the mobile highlight preset.

Affected Areas

src/sentry/issues/highlights.py
tests/sentry/core/endpoints/test_project_details.py
• Project details API responses for mobile platforms

This summary was automatically generated by @propel-code-bot

Copy link

@propel-test-bot propel-test-bot bot left a comment

Choose a reason for hiding this comment

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

No issues found; the updated mobile highlights preset and accompanying test look sound and align with the stated goals.

Status: No Issues Found | Risk: Low

Review Details

📁 2 files reviewed | 💬 0 comments

Instruction Files
├── .cursor/
│   └── rules/
│       ├── README.md
│       ├── backend.mdc
│       ├── frontend.mdc
│       ├── general.mdc
│       └── tests.mdc
├── AGENTS.md
├── CLAUDE.md
├── src/
│   ├── AGENTS.md
│   └── CLAUDE.md
└── tests/
    ├── AGENTS.md
    └── CLAUDE.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants