Releases: getsentry/sentry-native
Releases · getsentry/sentry-native
0.12.1
0.12.0
Breaking changes:
- If you use a narrow string path interface (for instance,
sentry_options_set_database_path()) on Windows rather than one of the wide string variants (sentry_options_set_database_pathw()), then the expected encoding is now UTF-8. (#1413)
Features:
- Add an option to use the stack pointer as an upper limit for the stack capture range in
crashpadon Windows. This is useful for targets like Proton/Wine, where one can't rely on the TEB-derived upper bound being correctly maintained by the system, leading to overly large stack captures per thread. (#1427, crashpad#137)
Fixes:
- Add logs flush on crash. This is not available for macOS with the
crashpadbackend. (#1404) - Make narrow UTF-8 the canonical path encoding on Windows. (#1413)
- Re-add setting thread name for Windows transport. (#1424)
- Fix AOT interop with managed .NET runtimes. (#1392)
Internal:
- Add
SENTRY_SDK_VERSIONCMake cache variable to allow downstream SDKs to override the SDK version at configuration time. (#1417) - Updated
crashpadto 2025-10-22. (#1426, crashpad#136, mini_chromium#4). - CI: bump Python to
3.12. (#1413) - Remove any
MAX_PATHdependencies incrashpadandbreakpad. (#1413, breakpad#43, crashpad#135)
0.11.3
0.11.2
0.11.1
0.11.0
Breaking changes:
- Add
user_dataparameter totraces_sampler. (#1346)
Fixes:
- Include
stddef.hexplicitly incrashpadsince futurelibc++revisions will stop providing this include transitively. (#1375, crashpad#132) - Fall back on
JWASMin the MinGWcrashpadbuild only if noCMAKE_ASM_MASM_COMPILERhas been defined. (#1375, crashpad#133) - Prevent
crashpadfrom leaking Objective-C ARC compile options into any parent target linkage. (#1375, crashpad#134) - Fixed a TOCTOU race between session init/shutdown and event capture. (#1377)
- Make the Windows resource generation aware of config-specific output paths for multi-config generators. (#1383)
- Remove the
ASMlanguage from the top-level CMake project, as this triggered CMake policyCMP194which isn't applicable to the top-level. (#1384)
Features:
- Add a configuration to disable logging after a crash has been detected -
sentry_options_set_logger_enabled_when_crashed(). (#1371)
Internal:
- Support downstream Xbox SDK specifying networking initialization mechanism. (#1359)
- Added
crashpadsupport infrastructure for the external crash reporter feature. (#1375, crashpad#131)
Docs:
- Document the CMake 4 requirement on macOS
SDKROOTdue to its empty default forCMAKE_OSX_SYSROOTin theREADME. (#1368)
Thank you:
0.10.1
0.10.0
Breaking changes:
- By using transactions as automatic trace boundaries, transactions will, by default, no longer be part of the same singular trace. This is not the case when setting trace boundaries explicitly (
sentry_regenerate_trace()orsentry_set_trace()), which turns off the automatic management of trace boundaries. (#1270) - Change transaction sampling to be trace-based. This does not affect you when transactions are used for automatic trace boundaries (as described above), since every transaction is part of a new trace. However, if you manage trace boundaries manually (using
sentry_regenerate_trace()) or run the Native SDK inside a downstream SDK like the Unity SDK, where these SDKs will manage the trace boundaries, for a giventraces_sample_rate, either all transactions in a trace get sampled or none do with probability equal to that sample rate. (#1254) - Moved Xbox toolchains to an Xbox-specific repository sentry-xbox. You can request access to the repository by following the instructions in Xbox documentation. (#1329)
Features:
- Add
sentry_clear_attachments()to allow clearing all previously added attachments in the global scope. (#1290) - Automatically set trace boundaries with every transaction. (#1270)
- Provide
sentry_regenerate_trace()to allow users to set manual trace boundaries. (#1293) - Add
Dynamic Sampling Context (DSC)to events. (#1254) - Add
sentry_value_new_feedbackandsentry_capture_feedbackto allow capturing User Feedback. (#1304)- Deprecate
sentry_value_new_user_feedbackandsentry_capture_user_feedbackin favor of the new API.
- Deprecate
- Add
sentry_envelope_read_from_file,sentry_envelope_get_header, andsentry_capture_envelope. (#1320) - Add
(u)int64sentry_value_ttype. (#1326)
Meta:
- Marked deprecated functions with
SENTRY_DEPRECATED(msg). (#1308)
Internal:
- Crash events from Crashpad now have
event_iddefined similarly to other backends. This makes it possible to associate feedback at the time of crash. (#1319)
0.9.1
Features:
- The
sentry_attach_file/bytes,sentry_scope_attach_file/bytes(and their wide-string variants), andsentry_remove_attachmenthave been added to modify the list of attachments that are sent along with sentry events after a call tosentry_init. (#1266, #1275)- NOTE: When using the
crashpadbackend on macOS, the list of attachments that will be added at the time of a hard crash will be frozen at the time ofsentry_init, and later modifications will not be reflected.
- NOTE: When using the
- Add
sentry_attachment_set_content_typeto allow specifying the content type of attachments. (#1276) - Add
sentry_attachment_set_filenameto allow specifying the filename of attachments displayed in the Sentry WebUI. (#1285)
Meta:
- Identify Xbox as a separate SDK name
sentry.native.xbox. (#1287)
Internal:
- Updated
breakpadto 2025-06-13. (#1277, breakpad#41)
0.9.0
Breaking changes:
- Limiting the proguard rules in the NDK package moves the burden of the configuration to its users. Please ensure to configure proguard in your project so native methods in your namespace can be symbolicated if they appear in stack traces. (#1250)
- When tags, contexts, and extra data are applied to events, the event data now takes precedence over the scope data as outlined in the Hub & Scope Refactoring developer document and the linked RFC code example. (#1253)
Features:
- Provide
before_send_transactioncallback. (#1236) - Add support for capturing events with local scopes. (#1248)
- Add Windows support for the
crashpad_wait_for_uploadflag. (#1255, crashpad#126)
Fixes:
- Reduce the scope of the proguard rules in the NDK package to local namespaces. (#1250)
- Close the file and return 0 on success when writing raw envelopes. (#1260)
- Fix event tags, contexts, and extra data to take precedence when applying scope data. (#1253)
Docs:
- Document convenience PowerShell runners for formatting and tests on Windows. (#1247)