Skip to content

fix(react-native-sdk): document EAS build hooks, expo context, dynamic route params, native error forwarding#45

Merged
HazAT merged 2 commits intomainfrom
copilot/update-sentry-react-native-sdk
Mar 9, 2026
Merged

fix(react-native-sdk): document EAS build hooks, expo context, dynamic route params, native error forwarding#45
HazAT merged 2 commits intomainfrom
copilot/update-sentry-react-native-sdk

Conversation

Copy link
Contributor

Copilot AI commented Mar 7, 2026

Four recently merged PRs in getsentry/sentry-react-native introduced new features not covered by the skill. This updates SKILL.md and the relevant reference files to close those gaps.

Changes

SKILL.md — Expo setup path

  • EAS Build Hooks (PR #5666): Documents the three binary hooks (sentry-eas-build-on-complete, sentry-eas-build-on-error, sentry-eas-build-on-success), package.json registration, eas secret:create SENTRY_DSN, and the env-var control surface (SENTRY_EAS_BUILD_CAPTURE_SUCCESS, SENTRY_EAS_BUILD_TAGS, etc.)

references/error-monitoring.md

  • Expo Constants Context (PR #5748): Adds ExpoConstants to the default integrations table; documents the automatic expo context fields (execution_environment, app_name, eas_project_id, …) that now appear on every event from an Expo app
  • Native Error Forwarding (PR #5622): New subsection under Native Crash Handling covering the onNativeLog callback, its parameters, correct usage with Sentry.consoleSandbox() to avoid feedback loops

references/tracing.md

  • Dynamic Route Param Attributes (PR #5750): Documents bracket-notation param detection ([param], [...slug]), span attribute naming convention (route.params.<key>), catch-all array joining, and the sendDefaultPii: true requirement for capture
Original prompt

This section details on the original issue you should resolve

<issue_title>[skill-drift] sentry-react-native-sdk may need updates</issue_title>
<issue_description>## SDK Changes Detected

The following PRs were merged to getsentry/sentry-react-native in the last 7 days that may affect the sentry-react-native-sdk skill:

Potential Skill Gaps

  1. New Framework Integration — EAS Build Hooks (PR #5666): The SDK now provides EAS build hooks for automated error reporting during EAS build lifecycle events. This is a new integration for Expo users building with EAS. The skill currently mentions EAS Build only as a build environment for source maps and session replay, not as a first-class integration with build lifecycle hooks. This may require updates to the Expo setup path in SKILL.md and potentially a new section in the Expo-specific guidance.

  2. New Feature — Expo Constants Context (PR #5748): The SDK now automatically adds a new expo context to events, containing EAS/Expo configuration metadata (how EAS was set up in the current app). This enriches error events with Expo-specific context data. The skill doesn't describe this automatic context enrichment for Expo apps.

  3. New Feature — Dynamic Route Param Attributes (PR #5750): The SDK now captures dynamic route parameters (e.g., userId in /users/:userId) as span attributes during navigation tracing. This improves trace quality for apps using Expo Router or React Navigation with dynamic routes. The skill's tracing reference should document this behavior.

  4. New Feature — Native Error Forwarding (PR #5622): New iOS and Android capability to intercept errors from the native side and forward them to the JS console. This is a new error capture pathway not mentioned in the skill's error monitoring section.

Skill Files to Review

  • skills/sentry-react-native-sdk/SKILL.md — Expo setup section, tracing features
  • skills/sentry-react-native-sdk/references/tracing.md — dynamic route param span attributes
  • skills/sentry-react-native-sdk/references/error-monitoring.md — native error forwarding

Priority

MEDIUM — multiple new features for Expo users (the primary audience growth area for RN SDK) plus new tracing and error capture capabilities.

Generated by SDK Skill Drift Detector ·

  • expires on Mar 21, 2026, 9:08 PM UTC

Comments on the Issue (you are @copilot in this section)

Custom agent used: skill-updater
Expert Sentry SDK skill author that updates and creates SDK skill bundles. Specializes in researching SDK changes, verifying APIs against official docs and source code, and producing high-quality wizard flows with deep-dive reference files. Use when updating skills after SDK changes, creating new skills for new platforms, or fixing skill drift issues.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…te params, native log forwarding

- EAS Build Hooks (PR #5666): document sentry-eas-build-on-complete/error/success
  binary hooks in SKILL.md; add EAS env vars to environment variables table
- Expo Constants Context (PR #5748): document automatic expoConstantsIntegration
  in error-monitoring.md default integrations table and Device & App Context
  section; includes expo_constants fields (execution_environment, app_name,
  eas_project_id, etc.)
- Dynamic Route Param Attributes (PR #5750): add section 4c to tracing.md
  documenting Expo Router [id]/[...slug] params captured as route.params.*
  span attributes when sendDefaultPii: true
- Native SDK Log Forwarding (PR #5622): document onNativeLog callback in
  error-monitoring.md with consoleSandbox usage to prevent feedback loops;
  add onNativeLog to SKILL.md Hook Options table and Full init() reference

Co-Authored-By: Claude (claude-sonnet-4-5, Anthropic)
Copilot AI changed the title [WIP] Update sentry-react-native-sdk for recent changes fix(react-native-sdk): document EAS build hooks, expo context, dynamic route params, native error forwarding Mar 7, 2026
Copilot finished work on behalf of HazAT March 7, 2026 21:34
@HazAT HazAT marked this pull request as ready for review March 7, 2026 21:42
@HazAT HazAT requested a review from a team March 9, 2026 09:53
Copy link
Contributor

@antonis antonis left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@HazAT HazAT merged commit 54f4e10 into main Mar 9, 2026
10 checks passed
@HazAT HazAT deleted the copilot/update-sentry-react-native-sdk branch March 9, 2026 15:57
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.

[skill-drift] sentry-react-native-sdk may need updates

3 participants