-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Allow to configure sampling config for logs #6404
Conversation
Codecov ReportBase: 91.64% // Head: 91.63% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #6404 +/- ##
==========================================
- Coverage 91.64% 91.63% -0.01%
==========================================
Files 238 240 +2
Lines 13811 13826 +15
==========================================
+ Hits 12657 12670 +13
- Misses 924 925 +1
- Partials 230 231 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
Change looks good, please rebase. Added just one non-blocking question
// LogsSamplingConfig sets a sampling strategy for the logger. Sampling caps the | ||
// global CPU and I/O load that logging puts on your process while attempting | ||
// to preserve a representative subset of your logs. | ||
type LogsSamplingConfig struct { |
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.
Is it worth adding a note in the troubleshooting docs as to how to enable sampling? https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/troubleshooting.md#logs
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.
We have only minimal examples there, not sure if we should add all of them there, or keep it minimal only the level.
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.
We can do it in a separate PR.
Fixes open-telemetry#4554 Signed-off-by: Bogdan <[email protected]>
8fccc4a
to
276c1c9
Compare
Fixes #4554