Skip to content

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

@MattDynamite

Description

@MattDynamite

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions