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][cmd/telemetrygen] Fix deprecated method usage #32300

Merged
merged 2 commits into from
Apr 10, 2024

Conversation

crobert-1
Copy link
Member

Description:

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 in an equivalent way to how we were using grpc.DialContext, so there shouldn't be any impact here.

Link to tracking Issue:
Resolves #32297

@crobert-1 crobert-1 requested a review from a team April 10, 2024 17:44
@github-actions github-actions bot added the cmd/telemetrygen telemetrygen command label Apr 10, 2024
Copy link
Member

@mx-psi mx-psi left a comment

Choose a reason for hiding this comment

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

LGTM after addressing

Error: telemetrygen/internal/logs/exporter.go:25:18: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)

@crobert-1
Copy link
Member Author

LGTM after addressing

Error: telemetrygen/internal/logs/exporter.go:25:18: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)

Thanks for pointing this out, fixed.

@codeboten codeboten merged commit 2b0d1be into open-telemetry:main Apr 10, 2024
170 checks passed
@github-actions github-actions bot added this to the next release milestone Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmd/telemetrygen telemetrygen command
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[chore] staticcheck fails on deprecated grpc.DialContext
5 participants