Skip to content

chore(deps): update Native SDK to v0.16.5 - #2826

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
deps/modules/sentry-native/0.16.5
Open

chore(deps): update Native SDK to v0.16.5#2826
github-actions[bot] wants to merge 1 commit into
mainfrom
deps/modules/sentry-native/0.16.5

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Bumps modules/sentry-native from 0.16.4 to 0.16.5.

Auto-generated by a dependency updater.

Changelog

0.16.5

Important behavior changes:

  • sentry_options_set_enable_logs and sentry_options_set_enable_metrics no longer have any effect. The corresponding getters always return true.

    Structured logs and metrics have been enabled by default since 0.13.

    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_crash for deliberately crashing the current process to test its crash reporting configuration. (#2013)
  • Native: add sentry_options_set_thread_stackwalk_mode to limit client-side stackwalking to the crashed thread, which shortens crash processing for applications with a high thread count. (#2026)
  • Add sentry_value_foreach_value and sentry_value_foreach_key_value for iterating lists and objects. (#2032)

Fixes:

  • Native/Linux: prevent the crash daemon from hanging when module discovery encounters device-backed memory mappings. (#2025)

Other changes:

  • Promote the 68 performance monitoring and tracing functions from experimental to stable. (#2012)

@bruno-garcia
bruno-garcia force-pushed the deps/modules/sentry-native/0.16.5 branch from 7bd4e9a to 2f86a68 Compare September 2, 2026 03:03
Comment thread modules/sentry-native
@@ -1 +1 @@
Subproject commit 22e1073a32e940b190e048890ede26c1dd1db3ef
Subproject commit 1c935e87ce24d4697ac4710278269237be17e006

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bug: Updating sentry-native to v0.16.5 causes EnableLogs and EnableMetrics settings to be ignored for logs/metrics generated internally by the native SDK, as the underlying native functions are now no-ops.
Severity: MEDIUM

Suggested Fix

Remove the calls to the deprecated sentry_options_set_enable_logs and sentry_options_set_enable_metrics functions. To restore the intended filtering behavior, implement the new recommended native SDK mechanism by using sentry_options_set_before_send_log and sentry_options_set_before_send_metric to check the EnableLogs and EnableMetrics settings and discard events accordingly at the native level.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: modules/sentry-native#L1

Potential issue: The update to `sentry-native` v0.16.5 introduces a behavioral
regression. The native functions `sentry_options_set_enable_logs` and
`sentry_options_set_enable_metrics`, which are called by the C# bridge, are now
deprecated and have no effect. While the C# layer has its own guards that filter most
logs and metrics based on the `EnableLogs` and `EnableMetrics` settings, this does not
apply to any logs or metrics generated internally by the native SDK itself. As a result,
these internal native-layer events will be sent even when the user has disabled them in
the options, leading to unintended data transmission.

Did we get this right? 👍 / 👎 to inform future reviews.

@bruno-garcia
bruno-garcia force-pushed the deps/modules/sentry-native/0.16.5 branch from 2f86a68 to a1f83cc Compare September 3, 2026 04:09
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.

1 participant