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

github.com/lightstep/otel-launcher-go/lightstep/instrumentation import fails for undefined variables #781

Open
MattDynamite opened this issue Sep 25, 2024 · 0 comments

Comments

@MattDynamite
Copy link

Describe the bug
Can't build my project when importing otel-launcher-go
I get the following error:
go\pkg\mod\github.com\lightstep\otel-launcher-go\lightstep\[email protected]\cputime\cputime_other.go:58:2: undefined: gcSeconds

To Reproduce
Add github.com/lightstep/otel-launcher-go/lightstep/instrumentation to your go.mod file on a non-linux machine (windows in my case).
The error is that undefined: memStats & undefined: gcSeconds variables are not defined anywhere.
I'm not sure how it compiles anywhere else (Maybe there's something wrong with my project?)

Expected behavior
Import the package and it will work.

Additional context
Also when running go linter I get:
Running error: can't run linter goanalysis_metalinter\nbuildir: failed to load package cputime: could not load export data: no export data for \"github.com/lightstep/otel-launcher-go/lightstep/instrumentation/cputime

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