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

[chore] migrate obsreport to use errors.Join instead of go.uber.org/multierr #8223

Conversation

shivanshuraj1333
Copy link
Member

@shivanshuraj1333 shivanshuraj1333 commented Aug 13, 2023

Part of: #8210

@shivanshuraj1333 shivanshuraj1333 requested review from a team and djaglowski August 13, 2023 19:54
@shivanshuraj1333 shivanshuraj1333 changed the title use errors.Join instead of go.uber.org/multierr [chore] use errors.Join instead of go.uber.org/multierr Aug 13, 2023
@shivanshuraj1333 shivanshuraj1333 marked this pull request as draft August 13, 2023 19:55
@shivanshuraj1333 shivanshuraj1333 changed the title [chore] use errors.Join instead of go.uber.org/multierr [chore] migrate obsreport to use errors.Join instead of go.uber.org/multierr Aug 14, 2023
@shivanshuraj1333 shivanshuraj1333 marked this pull request as ready for review August 14, 2023 04:53
@@ -89,37 +88,37 @@ func (exp *Exporter) createOtelMetrics(cfg ExporterSettings) error {
obsmetrics.ExporterPrefix+obsmetrics.SentSpansKey,
metric.WithDescription("Number of spans successfully sent to destination."),
metric.WithUnit("1"))
errors = multierr.Append(errors, err)
errors = errors.Join(errors, err)
Copy link
Member

Choose a reason for hiding this comment

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

Please rename variable errors to not clash with the package name

Copy link
Member

Choose a reason for hiding this comment

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

errs

@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2023

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Sep 6, 2023
@github-actions
Copy link
Contributor

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants