Skip to content

fix: Tidy up closes for nicer output #4605

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

Merged
merged 3 commits into from
Oct 17, 2022
Merged

fix: Tidy up closes for nicer output #4605

merged 3 commits into from
Oct 17, 2022

Conversation

kylecarbs
Copy link
Member

There was a context canceled message that would appear because of traces, and this was using the wrong close.

I don't think it was causing any specific problems, but it could make a replica warning appear on restart.

There was a context canceled message that would appear
because of traces, and this was using the wrong close.

I don't think it was causing any specific problems, but
it could make a replica warning appear on restart.
@kylecarbs kylecarbs requested a review from sreya October 17, 2022 22:18
@kylecarbs kylecarbs self-assigned this Oct 17, 2022
@@ -59,12 +60,15 @@ func TracerProvider(ctx context.Context, service string, opts TracerOpts) (*sdkt

tracerProvider := sdktrace.NewTracerProvider(tracerOpts...)
otel.SetTracerProvider(tracerProvider)
// Ignore otel errors!
otel.SetErrorHandler(otel.ErrorHandlerFunc(func(err error) {}))
Copy link
Contributor

Choose a reason for hiding this comment

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

thx

@kylecarbs kylecarbs enabled auto-merge (squash) October 17, 2022 23:16
@kylecarbs kylecarbs disabled auto-merge October 17, 2022 23:23
@kylecarbs kylecarbs merged commit c5afaff into main Oct 17, 2022
@kylecarbs kylecarbs deleted the fixclose branch October 17, 2022 23:36
@github-actions github-actions bot locked and limited conversation to collaborators Oct 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants