Skip to content
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

Merged
merged 1 commit into from
Nov 7, 2022

Conversation

bogdandrutu
Copy link
Member

Fixes #4554

@bogdandrutu bogdandrutu marked this pull request as ready for review October 25, 2022 17:33
@bogdandrutu bogdandrutu requested review from a team and tigrannajaryan October 25, 2022 17:33
@codecov
Copy link

codecov bot commented Oct 25, 2022

Codecov Report

Base: 91.64% // Head: 91.63% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (276c1c9) compared to base (6b27644).
Patch coverage: 83.33% of modified lines in pull request are covered.

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     
Impacted Files Coverage Δ
service/telemetry/config.go 100.00% <ø> (ø)
service/telemetry/telemetry.go 80.00% <72.72%> (-3.34%) ⬇️
service/unmarshaler.go 100.00% <100.00%> (ø)
service/host.go 100.00% <0.00%> (ø)
service/config.go 100.00% <0.00%> (ø)
component/exporter.go 100.00% <0.00%> (ø)
component/receiver.go 100.00% <0.00%> (ø)
component/component.go 100.00% <0.00%> (ø)
component/extension.go 100.00% <0.00%> (ø)
component/factories.go 100.00% <0.00%> (ø)
... and 50 more

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@codeboten codeboten left a 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 {
Copy link
Contributor

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

Copy link
Member Author

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.

Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Global sampling service telemetry logging configuration options
2 participants