Skip to content

feat: Implement logging enable/disable feature, with crash handler options#1371

Merged
mujacica merged 25 commits intomasterfrom
mujacic/feat/crash_handler_logging
Sep 16, 2025
Merged

feat: Implement logging enable/disable feature, with crash handler options#1371
mujacica merged 25 commits intomasterfrom
mujacic/feat/crash_handler_logging

Conversation

@mujacica
Copy link
Copy Markdown
Contributor

  • Added a feature to enable/disable logging
  • Added a new option to enable/disable logging during crash handling
  • Extended tests for the new functionality

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Sep 15, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 9c1f842

@mujacica mujacica marked this pull request as ready for review September 15, 2025 12:37
cursor[bot]

This comment was marked as outdated.

Comment thread src/backends/sentry_backend_breakpad.cpp Outdated
Comment thread include/sentry.h Outdated
Comment thread CHANGELOG.md Outdated
Copy link
Copy Markdown
Collaborator

@supervacuus supervacuus left a comment

Choose a reason for hiding this comment

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

Given @vaind's valid review points, there are open todos:

  • (maybe) eliminate logging reenablement
  • if you keep it, it should be moved beyond the sentry__leave_signal_handler(); boundary
  • a basic integration test that validates the crash case on all platforms + backends

@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 16, 2025

Codecov Report

❌ Patch coverage is 47.61905% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 45.49%. Comparing base (97a4a99) to head (feac639).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #1371       +/-   ##
===========================================
- Coverage   83.74%   45.49%   -38.26%     
===========================================
  Files          56       56               
  Lines        8769     8815       +46     
  Branches     1367     1385       +18     
===========================================
- Hits         7344     4010     -3334     
- Misses       1297     4805     +3508     
+ Partials      128        0      -128     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@mujacica mujacica requested a review from vaind September 16, 2025 14:27
Copy link
Copy Markdown
Collaborator

@supervacuus supervacuus left a comment

Choose a reason for hiding this comment

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

This looks great. Thanks for the effort. Only minor stuff left.

Comment thread CHANGELOG.md Outdated
Comment thread examples/example.c
Comment thread tests/test_integration_logger.py Outdated
Comment thread tests/test_integration_logger.py Outdated
Comment thread tests/test_integration_logger.py Outdated
Comment thread tests/test_integration_logger.py Outdated
Comment thread tests/test_integration_logger.py
mujacica and others added 7 commits September 16, 2025 17:06
Co-authored-by: Mischan Toosarani-Hausberger <mischan@abovevacant.com>
Co-authored-by: Mischan Toosarani-Hausberger <mischan@abovevacant.com>
Co-authored-by: Mischan Toosarani-Hausberger <mischan@abovevacant.com>
Co-authored-by: Mischan Toosarani-Hausberger <mischan@abovevacant.com>
Co-authored-by: Mischan Toosarani-Hausberger <mischan@abovevacant.com>
cursor[bot]

This comment was marked as outdated.

@mujacica mujacica merged commit 48ae2ec into master Sep 16, 2025
65 of 67 checks passed
@mujacica mujacica deleted the mujacic/feat/crash_handler_logging branch September 16, 2025 19:26
BernhardMarconato pushed a commit to elgatosf/sentry-native that referenced this pull request Apr 21, 2026
…e logging in handlers (getsentry#1371)

* Implemented logging enable/disable feature
* Added a new option to enable/disable handling while handling crashes
* Extended all backends to support new feature
* Extended unit tests
* Added logger integration tests

---------

Co-authored-by: Mischan Toosarani-Hausberger <mischan@abovevacant.com>
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.

3 participants