ref(log): send logs by default when logs feature flag is enabled#915
Merged
ref(log): send logs by default when logs feature flag is enabled#915
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #915 +/- ##
==========================================
+ Coverage 73.48% 73.51% +0.02%
==========================================
Files 64 64
Lines 7533 7533
==========================================
+ Hits 5536 5538 +2
+ Misses 1997 1995 -2 |
szokeasaurusrex
approved these changes
Oct 2, 2025
Member
szokeasaurusrex
left a comment
There was a problem hiding this comment.
Looks good! Long term, I would consider completely removing the enable_logs flag, and have setting/unsetting the feature flag be the only way to enable/disable logs
Member
Author
|
@szokeasaurusrex Thanks. I also have this #910 which sets |
Member
|
@lcian Ah I was more referring to that we maybe should consider completely removing the flag, so that you cannot disable logs if the logs feature flag is turned on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Removes the double opt-in for the
logcrate integration, as we'll now map to both anexception/breadcrumband alogwhen thelogsfeature flag is active and the level is at or above INFO.If the user has set
enable_logs: falsein their client options, the log will be created but dropped when it reaches theclient.This creates the log uselessly to later discard it. Still, in 99% of cases, if I use the
logsfeature flag, it means I want to get logs, so most probablyenable_logs == trueand the log is actually used.This change is analogous to the one we already did for the
tracingintegration.Issues
Closes #909
Closes RUST-112