otel-launcher-go icon indicating copy to clipboard operation
otel-launcher-go copied to clipboard

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

Open MattDynamite opened this issue 1 year ago • 0 comments

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

MattDynamite avatar Sep 25 '24 06:09 MattDynamite