-
Notifications
You must be signed in to change notification settings - Fork 119
Description
Describe the bug
A clear and concise description of what the bug is.
Environment
- OS: k8s 1.32
- Go Version: 1.23.4
- Version: [e.g. 1295520, v0.1.0]
To Reproduce
Steps to reproduce the behavior:
{"time":"2025-05-29T09:24:57.393303627Z","level":"INFO","source":{"function":"main.(*ProcessPoller).Poll","file":"/usr/src/go.opentelemetry.io/auto/cli/process_poller.go","line":69},"msg":"Polling for process","binary":"/usr/local/bin/dex_sol","interval":2000000000}
{"time":"2025-05-29T09:24:59.393674174Z","level":"INFO","source":{"function":"main.(*ProcessPoller).Poll","file":"/usr/src/go.opentelemetry.io/auto/cli/process_poller.go","line":92},"msg":"process found","PID":7}
{"time":"2025-05-29T09:24:59.393791697Z","level":"INFO","source":{"function":"main.main","file":"/usr/src/go.opentelemetry.io/auto/cli/main.go","line":138},"msg":"building OpenTelemetry Go instrumentation ...","version":{"Release":"v0.22.0","Revision":"unknown","Go":{"Version":"go1.24.3","OS":"linux","Arch":"amd64"}}}
{"time":"2025-05-29T09:24:59.394375642Z","level":"INFO","source":{"function":"main.main","file":"/usr/src/go.opentelemetry.io/auto/cli/main.go","line":161},"msg":"building OpenTelemetry Go instrumentation ...","PID":7,"version":{"Release":"v0.22.0","Revision":"unknown","Go":{"Version":"go1.24.3","OS":"linux","Arch":"amd64"}}}
{"time":"2025-05-29T09:24:59.417203951Z","level":"ERROR","source":{"function":"main.main","file":"/usr/src/go.opentelemetry.io/auto/cli/main.go","line":169},"msg":"failed to create instrumentation","error":"invalid dependency version ***/key/dex_services ((devel)): Invalid Semantic Version"}
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
Activity
MrAlias commentedon May 29, 2025
Thank you for opening this bug. We require all the missing information the issue template asked for to investigate this issue. Be sure to update with all the missing info.
Also, please take a look at other issues first. This looks similar to other issues regarding package versioning.
apshada commentedon Jun 2, 2025
@zknic We're encountering the same issue with the latest version.
Try using the following image instead — it works correctly:
image: otel/autoinstrumentation-go:v0.21.0
RonFed commentedon Jun 2, 2025
This is a regression by #1941
If we failed to parse the version of a module we used to log an error and move on, the above PR changed this behavior to return an error and stop the instrumentation which is not necessary if the module we failed to get the version for is not required for instrumentation.
(devel)
versions #2401Revert "chore(deps): bump go.opentelemetry.io/auto from 0.21.0 to 0.2…