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

Remove noisy log statement #9018

Merged
merged 1 commit into from Nov 30, 2023
Merged

Conversation

atoulme
Copy link
Contributor

@atoulme atoulme commented Nov 30, 2023

Description:
Removes a noisy log statement

Link to tracking Issue:
Fixes #9017

@atoulme atoulme requested a review from a team as a code owner November 30, 2023 04:38
Copy link

codecov bot commented Nov 30, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (cd963da) 91.57% compared to head (65bc7b8) 91.57%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9018      +/-   ##
==========================================
- Coverage   91.57%   91.57%   -0.01%     
==========================================
  Files         316      316              
  Lines       17147    17146       -1     
==========================================
- Hits        15702    15701       -1     
  Misses       1150     1150              
  Partials      295      295              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -117,7 +117,6 @@ func (rs *retrySender) send(ctx context.Context, req Request) error {
trace.WithAttributes(rs.traceAttribute, attribute.Int64("retry_num", retryNum)))

err := rs.nextSender.send(ctx, req)
rs.logger.Info("Exporting finished.", zap.Error(err))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we switch it to a Debug? Or would it be too noisy even for that?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debug is probably ok

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imo it's not useful. The error is logged if present a few lines below, and I don't see value in outputting a debug statement that an export is done, when we also have tracing and span events collected around those lines.

@mx-psi
Copy link
Member

mx-psi commented Nov 30, 2023

Generated code is out of date, please run "make genotelcorecol" and commit the changes in this PR.

If we are going to do a bugfix release for this, we should follow the release procedure on https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/release.md#bugfix-release-procedure, which makes it less likely that we will get things wrong re:go dependencies

@dmitryax
Copy link
Member

@atoulme thanks for the fix!

@dmitryax
Copy link
Member

Please rebase

@atoulme
Copy link
Contributor Author

atoulme commented Nov 30, 2023

Rebased, sorry.

@codeboten codeboten merged commit cefe1b7 into open-telemetry:main Nov 30, 2023
32 checks passed
@github-actions github-actions bot added this to the next release milestone Nov 30, 2023
dmitryax pushed a commit to dmitryax/opentelemetry-collector that referenced this pull request Dec 1, 2023
dmitryax added a commit that referenced this pull request Dec 1, 2023
#9018
against the patch release branch

Co-authored-by: Antoine Toulme <antoine@lunar-ocean.com>
hdkshingala pushed a commit to fluxninja/opentelemetry-collector that referenced this pull request Dec 4, 2023
open-telemetry#9018
against the patch release branch

Co-authored-by: Antoine Toulme <antoine@lunar-ocean.com>
pantuza pushed a commit to pantuza/opentelemetry-collector that referenced this pull request Dec 8, 2023
hdkshingala pushed a commit to fluxninja/opentelemetry-collector that referenced this pull request Jan 1, 2024
open-telemetry#9018
against the patch release branch

Co-authored-by: Antoine Toulme <antoine@lunar-ocean.com>
hdkshingala pushed a commit to fluxninja/opentelemetry-collector that referenced this pull request Feb 5, 2024
open-telemetry#9018
against the patch release branch

Co-authored-by: Antoine Toulme <antoine@lunar-ocean.com>
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.

The new collector is emitting logs unnecessarily
7 participants