-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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] staticcheck fails on deprecated grpc.DialContext #32297
Labels
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
codeboten
pushed a commit
that referenced
this issue
Apr 10, 2024
`grpc.DialContext` has been deprecated in favor of `grpc.NewClient`. The only difference relevant to our usage is that the context is no longer passed in. I investigated, and the context being cancelled and exiting the running sub-goroutine is [handled internally](https://github.com/grpc/grpc-go/blob/d32e66ce27447a0a217464a36fdd3935801c0453/clientconn.go#L135) in an equivalent way to how we were using `grpc.DialContext`, so there shouldn't be any impact here. Resolves #32297
rimitchell
pushed a commit
to rimitchell/opentelemetry-collector-contrib
that referenced
this issue
May 8, 2024
…#32300) `grpc.DialContext` has been deprecated in favor of `grpc.NewClient`. The only difference relevant to our usage is that the context is no longer passed in. I investigated, and the context being cancelled and exiting the running sub-goroutine is [handled internally](https://github.com/grpc/grpc-go/blob/d32e66ce27447a0a217464a36fdd3935801c0453/clientconn.go#L135) in an equivalent way to how we were using `grpc.DialContext`, so there shouldn't be any impact here. Resolves open-telemetry#32297
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Component(s)
cmd/telemetrygen
Describe the issue you're reporting
See an example in https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/8628541634/job/23650975835?pr=32276#step:8:110
The text was updated successfully, but these errors were encountered: