-
-
Notifications
You must be signed in to change notification settings - Fork 167
ref(log): send logs by default when logs feature flag is enabled #915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: lcian/feat/log-multiple-mappings
Are you sure you want to change the base?
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 @@
## lcian/feat/log-multiple-mappings #915 +/- ##
====================================================================
+ Coverage 73.51% 73.52% +0.01%
====================================================================
Files 64 64
Lines 7539 7539
====================================================================
+ Hits 5542 5543 +1
+ Misses 1997 1996 -1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
@szokeasaurusrex Thanks. I also have this #910 which sets |
@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 |
Description
Removes the double opt-in for the
log
crate integration, as we'll now map to both anexception
/breadcrumb
and alog
when thelogs
feature flag is active and the level is at or above INFO.If the user has set
enable_logs: false
in 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
logs
feature flag, it means I want to get logs, so most probablyenable_logs == true
and the log is actually used.This change is analogous to the one we already did for the
tracing
integration.Issues
Closes #909
Closes RUST-112