Skip to content

failed to create instrumentation #2388

@zknic

Description

@zknic

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

added
duplicateThis issue or pull request already exists
invalidThis doesn't seem right
and removed
duplicateThis issue or pull request already exists
on May 29, 2025
MrAlias

MrAlias commented on May 29, 2025

@MrAlias
Contributor

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

apshada commented on Jun 2, 2025

@apshada

@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

RonFed commented on Jun 2, 2025

@RonFed
Contributor

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.

added this to the v0.22.1 milestone on Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Participants

      @MrAlias@zknic@apshada@RonFed

      Issue actions

        failed to create instrumentation · Issue #2388 · open-telemetry/opentelemetry-go-instrumentation