Skip to content

feat(internal): add platform integration hook - #2005

Open
jpnurmi wants to merge 6 commits into
masterfrom
jpnurmi/feat/platform-integration
Open

feat(internal): add platform integration hook#2005
jpnurmi wants to merge 6 commits into
masterfrom
jpnurmi/feat/platform-integration

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

Adds a SENTRY_INTEGRATION_PLATFORM build option for console SDKs.

When enabled, sentry-native automatically creates the downstream-provided platform integration via sentry_integration_platform_new(). This lets sentry-playstation, sentry-switch, and sentry-xbox move platform-specific initialization into a platform integration without wrapping sentry__native_init():

#skip-changelog (internal)

@github-actions

github-actions Bot commented Aug 19, 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 1019c1f

@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.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 958c654. Configure here.

Comment thread CMakeLists.txt
@jpnurmi jpnurmi changed the title feat(native): add platform integration hook feat: add platform integration hook Aug 19, 2026
Comment thread tests/fixtures/test_platform/test_platform.c
@codecov

codecov Bot commented Aug 20, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.62%. Comparing base (69639a0) to head (1019c1f).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2005      +/-   ##
==========================================
- Coverage   74.69%   74.62%   -0.08%     
==========================================
  Files         104      104              
  Lines       26182    26190       +8     
  Branches     4740     4741       +1     
==========================================
- Hits        19557    19543      -14     
- Misses       5295     5316      +21     
- Partials     1330     1331       +1     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jpnurmi jpnurmi changed the title feat: add platform integration hook feat(internal): add platform integration hook Aug 20, 2026
Allow downstream platform SDKs to register an integration without replacing
sentry_init().

Add an integration fixture that verifies a mixture of SDK metadata, platform
scope data, and application event data.
@jpnurmi
jpnurmi force-pushed the jpnurmi/feat/platform-integration branch from 59712b4 to bdd77ec Compare August 21, 2026 08:51
Comment thread tests/fixtures/test_platform/test_platform.c
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