Skip to content

chore(deps): update Native SDK to v0.17.1 - #6135

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
deps/scripts/update-sentry-native-ndk.sh
Open

github-actions[bot] wants to merge 1 commit into
mainfrom
deps/scripts/update-sentry-native-ndk.sh

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Bumps scripts/update-sentry-native-ndk.sh from 0.16.6 to 0.17.1.

Auto-generated by a dependency updater.

Changelog

0.17.1

Fixes:

  • Fix crash context missing from PlayStation crash reports when an on_crash callback is set. (#2133)

0.17.0

Breaking / Important behavior changes:

  • Attachment APIs now use sentry_value_t and sentry_uuid_t instead of sentry_attachment_t * handles. Most attachment APIs, function names and arguments, are otherwise unchanged. (#1974)
  • sentry_init() now consumes <db>/last_crash after caching its value, aligning crashed-last-run behavior with other Sentry SDKs. (#2023)
  • Change the hint parameter of before_send callbacks (sentry_event_function_t) from void * to sentry_hint_t *. Update callbacks registered with sentry_options_set_before_send to use the new parameter type. (#2099)
  • Add a sentry_hint_t *hint argument to on_crash callbacks. (#2112)
  • Add a sentry_hint_t *hint argument to sentry_scope_capture_event. Pass NULL if no hint is needed. (#2099)
  • Remove sentry_options_get/set_enable_logs and sentry_options_get/set_enable_metrics. (#1980)

    Structured logs and metrics have been enabled by default since 0.13, and the options were deprecated and made no-ops in 0.16.

    We recognize that this change may inconvenience applications that rely on the opt-out. Use sentry_options_set_before_send_log or sentry_options_set_before_send_metric to filter logs or metrics. We made this tradeoff deliberately because consistent behavior across SDK integrations will help most users successfully adopt these features.

Features:

  • Add sentry_attachment_from_file/bytes (and their wide-string variants) for creating attachment values that can be fully configured before they are added. (#2079)
  • Add sentry_add_attachment, sentry_scope_add_attachment, and sentry_hint_add_attachment for adding configured attachments to the global scope, a specific scope, or a hint. These functions consume and freeze the attachment value. (#2079, #1974)
  • Add sentry_start_new_trace() as a clearer name for starting a new trace. (#2095)
  • Add hint support to sentry_scope_capture_event to pass event-specific attachments. The hint is also passed to before_send and on_crash, which can modify attachments before the event is sent. (#2099, #2112)
  • Add sentry_hint_get_attachments, sentry_hint_remove_attachment, and sentry_hint_clear_attachments. (#2099)

Fixes:

  • Reduce lock contention for multi-threaded log and metric capture by allowing concurrent reads of scope data, and reusing a single options reference throughout each capture. (#2091, #2094)

Other changes:

  • Promote structured logs and metrics APIs to stable. (#2101)

Deprecations:

  • Deprecate sentry_clear_crashed_last_run() because sentry_init() now consumes the marker automatically. (#2023)
  • Deprecate sentry_regenerate_trace() in favor of sentry_start_new_trace(). (#2095)

0.16.8

Features:

  • Add sentry_options_set_initial_scope for configuring scope data before the crash backend is started, including out-of-process crash handlers. (#2087)

Fixes:

  • Respect independent rate limits for feedback, logs, metrics, and attachments instead of dropping them during error backoff. (#2109)

Thank you:

0.16.7

Important:

This version was accidentally released from master and includes breaking changes intended for 0.17. It is superseded by 0.16.8, which restores compatibility with 0.16.6 and includes the intended hotfixes.

See https://github.com/getsentry/sentry-native/releases/tag/0.16.7 for the original changelog.

@github-actions github-actions Bot added the dependencies Pull requests that update a dependency file label Sep 19, 2026
@bruno-garcia
bruno-garcia force-pushed the deps/scripts/update-sentry-native-ndk.sh branch from 733d364 to 339dfaa Compare September 19, 2026 03:09
@sentry

sentry Bot commented Sep 19, 2026 •

Copy link
Copy Markdown

📲 Install Builds

Android

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

⚙️ sentry-android Build Distribution Settings

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

Stale Bugbot comment from a previous run.

Comment thread gradle/libs.versions.toml Outdated
@github-actions github-actions Bot changed the title chore(deps): update Native SDK to v0.16.7 chore(deps): update Native SDK to v0.16.8 Sep 20, 2026
@bruno-garcia
bruno-garcia force-pushed the deps/scripts/update-sentry-native-ndk.sh branch 2 times, most recently from 1889a64 to 54cd0cf Compare September 21, 2026 08:46
@github-actions github-actions Bot changed the title chore(deps): update Native SDK to v0.16.8 chore(deps): update Native SDK to v0.17.0 Sep 23, 2026
@bruno-garcia
bruno-garcia force-pushed the deps/scripts/update-sentry-native-ndk.sh branch from 54cd0cf to 58df0b5 Compare September 23, 2026 03:09

@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 58df0b5. Configure here.

Comment thread gradle/libs.versions.toml Outdated
retrofit = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit" }
retrofit-gson = { module = "com.squareup.retrofit2:converter-gson", version.ref = "retrofit" }
sentry-native-ndk = { module = "io.sentry:sentry-native-ndk", version = "0.16.6" }
sentry-native-ndk = { module = "io.sentry:sentry-native-ndk", version = "0.17.0" }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Native crash marker consumed too early

High Severity

Native SDK 0.17.0 makes sentry_init() consume .sentry-native/last_crash after caching it. NdkIntegration still calls init during Sentry.init, before EnvelopeCache and PreviousSessionFinalizer read that file. After a native crash, the previous session is no longer marked Crashed and isCrashedLastRun() can return false, especially below API 31 where tombstones do not backfill this.

Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bugbot

Reviewed by Cursor Bugbot for commit 58df0b5. Configure here.

@markushi markushi Sep 23, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As far as I can see there's a new sentry__retain_crash_marker method, which reverses this behavior just for Android: https://github.com/getsentry/sentry-native/pull/2023/changes#diff-e4d142a5c832bd54ef2d2d6d3cce1ea262ad322017b8c963a56d813d7f4cc230R444

But yeah, we need to do some testing on this before merging.

@bruno-garcia
bruno-garcia force-pushed the deps/scripts/update-sentry-native-ndk.sh branch 3 times, most recently from fd1659c to 5cd6070 Compare September 23, 2026 16:16
@bruno-garcia
bruno-garcia force-pushed the deps/scripts/update-sentry-native-ndk.sh branch from 5cd6070 to 5cd0f8c Compare September 24, 2026 09:38
@github-actions github-actions Bot changed the title chore(deps): update Native SDK to v0.17.0 chore(deps): update Native SDK to v0.17.1 Sep 24, 2026

This branch has not been deployed

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

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants