Documentation issue: Building a receiver (tutorial)
After following the instructions up to Running and debugging the receiver I get unexpected output
../go/pkg/mod/google.golang.org/[email protected]/status/status.go:35:2: ambiguous import: found package google.golang.org/genproto/googleapis/rpc/status in multiple modules:
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 (/home/hanyang/go/pkg/mod/google.golang.org/[email protected]/googleapis/rpc/status)
google.golang.org/genproto/googleapis/rpc v0.0.0-20240520151616-dc85e6b867a5 (/home/hanyang/go/pkg/mod/google.golang.org/genproto/googleapis/[email protected]/status)
../go/pkg/mod/go.opentelemetry.io/collector/exporter/[email protected]/otlp.go:13:2: ambiguous import: found package google.golang.org/genproto/googleapis/rpc/errdetails in multiple modules:
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 (/home/hanyang/go/pkg/mod/google.golang.org/[email protected]/googleapis/rpc/errdetails)
google.golang.org/genproto/googleapis/rpc v0.0.0-20240520151616-dc85e6b867a5 (/home/hanyang/go/pkg/mod/google.golang.org/genproto/googleapis/[email protected]/errdetails)
../go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway/[email protected]/runtime/handler.go:12:2: ambiguous import: found package google.golang.org/genproto/googleapis/api/httpbody in multiple modules:
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 (/home/hanyang/go/pkg/mod/google.golang.org/[email protected]/googleapis/api/httpbody)
google.golang.org/genproto/googleapis/api v0.0.0-20240520151616-dc85e6b867a5 (/home/hanyang/go/pkg/mod/google.golang.org/genproto/googleapis/[email protected]/httpbody)
when running the go run ./otelcol-dev --config config.yaml from the instructions
@open-telemetry/collector-approvers ptal
I am experiencing the same issue.
I'm experiencing this issue too
thanks @zdelagrange @mihaisevencode
@open-telemetry/collector-approvers please take a look, how can we fix this issue?
So this is definitely something to do with local development environment, i'm able to run the ocb in a docker container. i'm not exactly sure how his happens, because i've deleted and re-installed the golang installation many times. Is it possible this is only affecting MacOS Arm?
I am unable to reproduce on a linux/amd64 machine, commented on open-telemetry/opentelemetry-collector/issues/10476
@zdelagrange @mx-psi I observed this in a Ubuntu 20.04 environment and have not tried on MacOS Arm
@zdelagrange @mx-psi I observed this in a
Ubuntu 20.04environment and have not tried on MacOS Arm
In a dockerized or on a VM/physical machine? If in a dockerized environment, can you share your setup details, so someone can try to reproduce, if on a local machine, can you share some more characteristics that might help here (architecture, go version, etc.)
@zdelagrange @mx-psi I observed this in a
Ubuntu 20.04environment and have not tried on MacOS ArmIn a dockerized or on a VM/physical machine? If in a dockerized environment, can you share your setup details, so someone can try to reproduce, if on a local machine, can you share some more characteristics that might help here (architecture, go version, etc.)
this was on a local machine running ubuntu 20.04