-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Revert Logger.IsEnabled to not require Record #5770
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5770 +/- ##
=======================================
- Coverage 84.5% 84.5% -0.1%
=======================================
Files 272 272
Lines 22759 22753 -6
=======================================
- Hits 19253 19233 -20
- Misses 3166 3180 +14
Partials 340 340 |
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.
Adding options would decrease the performance (by adding heap allocations) on a path where users expect high-performance.
How about changing the EDIT: However, the possible alternative could be to update the Can we also rename the method (from |
Sure, but then we must have it extensible, so we need a way to be able to add more params. A different pattern that avoids allocations is to have a struct "Settings/Config" instead, but I followed your patterns. |
This seems acceptable to me (as noted in #5770 (comment)). EDIT: At minimum, we need to be able to set the log record severity level. Needed for: https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/processors/minsev/minsev.go |
I would prefer this in specs before adding support to be honest. |
This was removed from the specification based on the feedback of the spec SIG during a meeting: open-telemetry/opentelemetry-specification@19ade6d |
@MrAlias, do you know the reason why the following was removed:
The fact that something can be added in future does not mean that it can accept any parameters right now. Are you able to find the SIG meeting date so that I can watch the recording? |
My best guess would be May 7th. |
Correct, that is why I did this PR. |
From my understanding it was removed mostly because @jack-berg just wanted to decrease the scope of the PR and postpone the discussions around parameters. From transcript (a little cleaned up):
|
Issue was solved in #5791 |
Resolves #5769