Skip to content

Conversation

@limbonaut
Copy link
Collaborator

@limbonaut limbonaut commented Aug 7, 2025

This PR adds option logger/messages_as_breadcrumbs which is enabled by default. This allows disabling messages as breadcrumbs by a simple toggle. Since some projects print() heavily into console, this option should be quite useful.

Screenshot 2025-08-07 at 19 15 49

@limbonaut limbonaut changed the title feat: Add option to disable loggin messages as breadcrumbs feat: Add option to disable logging messages as breadcrumbs Aug 7, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Aug 7, 2025

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

Generated by 🚫 dangerJS against 99906fd

@jpnurmi
Copy link
Collaborator

jpnurmi commented Aug 8, 2025

The Native SDK's Qt integration does something similar and forwards all Qt logging output to Sentry as breadcrumbs. Personally, I find it quite noisy and annoying, which makes me wonder if the feature would be better off as opt-in... How do other SDKs handle this? 🤔

@mujacica
Copy link

mujacica commented Aug 8, 2025

@jpnurmi I think this is going to change with the upcoming Sentry Logs and logger changes. That should give us a possibility to configure these things in much more detail.

@limbonaut
Copy link
Collaborator Author

This only affects projects that add a lot of print() statements in code. By default, this adds close to zero noise. Since it's project-dependent how much noise it adds, I think leaving it ON by default is good for discoverability.

@limbonaut limbonaut merged commit ea8d8db into main Aug 8, 2025
85 of 86 checks passed
@limbonaut limbonaut deleted the feat/option-logger-messages-as-breadcrumbs branch August 8, 2025 14:05
sfanahata pushed a commit to getsentry/sentry-docs that referenced this pull request Sep 17, 2025
<!-- Use this checklist to make sure your PR is ready for merge. You may
delete any sections you don't need. -->

## DESCRIBE YOUR PR

Document logger_messages_as_breadcrumbs option, according to changes in:
- getsentry/sentry-godot#305
and also some other options that we're missing in the docs.

## IS YOUR CHANGE URGENT?  

Help us prioritize incoming PRs by letting us know when the change needs
to go live.
- [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE -->
- [ ] Other deadline: <!-- ENTER DATE HERE -->
- [x] None: Not urgent, can wait up to 1 week+

## SLA

- Teamwork makes the dream work, so please add a reviewer to your PRs.
- Please give the docs team up to 1 week to review your PR unless you've
added an urgent due date to it.
Thanks in advance for your help!

## PRE-MERGE CHECKLIST

*Make sure you've checked the following before merging your changes:*

- [x] Checked Vercel preview for correctness, including links
- [ ] PR was reviewed and approved by any necessary SMEs (subject matter
experts)
- [ ] PR was reviewed and approved by a member of the [Sentry docs
team](https://github.com/orgs/getsentry/teams/docs)

## LEGAL BOILERPLATE

<!-- Sentry employees and contractors can delete or ignore this section.
-->

Look, I get it. The entity doing business as "Sentry" was incorporated
in the State of Delaware in 2015 as Functional Software, Inc. and is
gonna need some rights from me in order to utilize my contributions in
this here PR. So here's the deal: I retain all rights, title and
interest in and to my contributions, and by keeping this boilerplate
intact I confirm that Sentry can use, modify, copy, and redistribute my
contributions, under Sentry's choice of terms.

## EXTRA RESOURCES

- [Sentry Docs contributor guide](https://docs.sentry.io/contributing/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option to disable logging messages as breadcrumbs

4 participants