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

import "go.opentelemetry.io/otel" issue #1613

Open
caiuskong opened this issue Mar 1, 2024 · 0 comments
Open

import "go.opentelemetry.io/otel" issue #1613

caiuskong opened this issue Mar 1, 2024 · 0 comments

Comments

@caiuskong
Copy link

caiuskong commented Mar 1, 2024

The following program sample.go triggers an unexpected result

package main

import (
  "fmt"
  "go.opentelemetry.io/otel"
)

func main() {
  fmt.Println(otel.Version())
}

Expected result

1.24.0

Got

run: ./sample.go:5:3: import "go.opentelemetry.io/otel" error: /Users/caius_kong/go/src/go.opentelemetry.io/otel/handler.go:18:2: import "go.opentelemetry.io/otel/internal/global" error: /Users/caius_kong/go/src/go.opentelemetry.io/otel/internal/global/handler.go:47:1: cannot define new methods on non-local type struct {}

Yaegi Version

0.15.1

Additional Notes

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant