-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
OpenTelemetry error installing K6 v0.53.0 #3897
Comments
Hey @IDispose Thanks for reporting this! Unfortunately, I can't reproduce it on my (linux) side. If I run both My colleague also double-checked that it works on Mac OS. There is a similar report grafana/xk6-output-opentelemetry#21, which was likely caused by a different version of the OTEL libraries pinned in the custom extension. Could you please confirm that you're using trying to install a stock version of k6, not through the xk6. Also, out of curiosity, how will result in the installation with the explicit versions, like: Thanks! |
@olegbespalov |
Closing for now; if something else or more details will appear, let's re-open. |
When building xk6 modules like xk6-kafka with k6 v0.53.0, the go.k6.io/[email protected] go.opentelemetry.io/otel/sdk/[email protected] BTW, this is resolved by pinning the package. |
hey @mostafa I'm not quite sure if I got which issue you're referring to 🤷 That's correct that k6 v0.53 brings a few more opentelemetry libraries, and if extensions need an updated version of them that might not work. In the upcoming version of the k6 (the latest Could you please maybe provide the steps to reproduce the issue? Thanks! |
Hey @olegbespalov, Here are the steps:
go install go.k6.io/xk6/cmd/xk6@latest
git clone [email protected]:mostafa/xk6-kafka.git && cd xk6-kafka
git reset --hard 9cbd5bd553d1a1e41064ccb0fc4daf0c0a626b88 # HEAD is now at 9cbd5bd Add FAQ No. 13
go get go.k6.io/[email protected]
go mod tidy
go mod graph | grep go.opentelemetry.io/otel/sdk/metric # go.k6.io/[email protected] go.opentelemetry.io/otel/sdk/[email protected]
xk6 build --with github.com/mostafa/xk6-kafka@latest=. # sometimes it builds, sometimes it nags about go.opentelemetry.io/otel/sdk/[email protected] I struggled with this yesterday, but it didn't happen today. 🤷 Maybe let's close this. |
Metrics were being refactored around the era of k6 0.40.0, and with 0.41 a breaking change was made that requires code updates to use. This change updates the code in order to work with 0.41 and newer versions of k6, at the cost of breaking compatability with 0.40 and older versions of k6. Since the current version of k6 is 0.53.0 at the time of writing, we don't feel like this is too onerous. Note: - Open Telemetry is pinned to 0.24 instead of 0.28 / 0.30 used in k6 0.53 due to build issues. See grafana/k6#3897
I'm closing this issue for now |
Brief summary
running
go install go.k6.io/k6
spits out this errork6 version
v0.53.0
OS
macOS Sonoma 14.5
Docker version and image (if applicable)
No response
Steps to reproduce the problem
running
go install go.k6.io/k6
Expected behaviour
K6 should be installed without errors
Actual behaviour
The text was updated successfully, but these errors were encountered: