-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[exporterhelper] Adding shutdown & startup debug logs for retry, queue, and batch sender #10208
Conversation
8cd409a
to
822f427
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10208 +/- ##
=======================================
Coverage 91.99% 91.99%
=======================================
Files 361 361
Lines 16970 16980 +10
=======================================
+ Hits 15611 15621 +10
Misses 1021 1021
Partials 338 338 ☔ View full report in Codecov by Sentry. |
qs.logger.Debug("Started Queue Sender", zap.String(obsmetrics.ExporterKey, qs.fullName), zap.Error(err)) | ||
errs = multierr.Append(errs, err) |
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.
qs.logger.Debug("Started Queue Sender", zap.String(obsmetrics.ExporterKey, qs.fullName), zap.Error(err)) | |
errs = multierr.Append(errs, err) | |
errs = multierr.Append(errs, err) | |
qs.logger.Debug("Started Queue Sender", zap.String(obsmetrics.ExporterKey, qs.fullName), zap.Error(errs)) |
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.
moved
@@ -91,6 +94,7 @@ func (bs *batchSender) Start(_ context.Context, _ component.Host) error { | |||
} | |||
}() | |||
|
|||
bs.logger.Debug("Started Batch Sender", zap.String(obsmetrics.ExporterKey, bs.fullName)) |
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.
I think the obsmetrics.ExporterKey
entry is not necessary, the logger will have a "name" entry (see https://github.com/open-telemetry/opentelemetry-collector/blob/main/service/internal/components/loggers.go#L38) with this.
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.
removed the exporter key from all the logs.
a2d50d4
to
8305715
Compare
Removing blocking since the main issue was fixed, I still am not sure why we need this.
@bogdandrutu is there anything else i need to address? |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
Description
Adding debug logs to starting and shutdown of batch, retry, and queue sender in exporterhelper to understand which component is stuck shutting down or starting up. This is added in order to improve debugging when one of these components are stuck shutting down or starting up.
Link to tracking issue
Fixes #10201
Testing
N/A
Documentation
N/A