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

[processor/servicegraphprocessor] make command doesn't work on golang 1.20 #20341

Closed
dmolenda-sumo opened this issue Mar 27, 2023 · 2 comments
Closed
Assignees
Labels
bug Something isn't working processor/servicegraph Service graph processor Stale

Comments

@dmolenda-sumo
Copy link
Contributor

Component(s)

processor/servicegraph

What happened?

Description

make command doesn't work on golang 1.20

Steps to Reproduce

run make command

Expected Result

everything works :)

Actual Result

error:
processor_test.go:296:2: SA1019: rand.Read has been deprecated since Go 1.20 because it shouldn't be used: For almost all use cases, crypto/rand.Read is more appropriate. (staticcheck) rand.Read(traceID[:]) ^ processor_test.go:299:2: SA1019: rand.Read has been deprecated since Go 1.20 because it shouldn't be used: For almost all use cases, crypto/rand.Read is more appropriate. (staticcheck) rand.Read(clientSpanID[:]) ^ processor_test.go:300:2: SA1019: rand.Read has been deprecated since Go 1.20 because it shouldn't be used: For almost all use cases, crypto/rand.Read is more appropriate. (staticcheck) rand.Read(serverSpanID[:]) ^ make[2]: *** [lint] Error 1 make[1]: *** [processor/servicegraphprocessor] Error 2 make: *** [all-common] Error 2

Collector version

latest

Environment information

golang 1.20.2

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

@dmolenda-sumo dmolenda-sumo added bug Something isn't working needs triage New item requiring triage labels Mar 27, 2023
@github-actions github-actions bot added the processor/servicegraph Service graph processor label Mar 27, 2023
@github-actions
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@atoulme atoulme removed the needs triage New item requiring triage label Mar 29, 2023
codeboten added a commit that referenced this issue May 11, 2023
math/rand is deprecated and should not be used in golang 1.20. I changed it to crypto/rand and thanks to that make on golag 1.20 works

Link to tracking Issue: #20341
---------

Co-authored-by: Alex Boten <[email protected]>
@github-actions
Copy link
Contributor

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working processor/servicegraph Service graph processor Stale
Projects
None yet
Development

No branches or pull requests

2 participants