opentelemetry.io icon indicating copy to clipboard operation
opentelemetry.io copied to clipboard

Documentation issue: Building a receiver (tutorial)

Open hyang023 opened this issue 1 year ago • 2 comments

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

hyang023 avatar Jun 24 '24 17:06 hyang023

@open-telemetry/collector-approvers ptal

svrnm avatar Jun 24 '24 17:06 svrnm

I am experiencing the same issue.

zdelagrange avatar Jun 25 '24 12:06 zdelagrange

I'm experiencing this issue too

mihaisevencode avatar Jul 30 '24 13:07 mihaisevencode

thanks @zdelagrange @mihaisevencode

@open-telemetry/collector-approvers please take a look, how can we fix this issue?

svrnm avatar Jul 30 '24 14:07 svrnm

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?

zdelagrange avatar Jul 30 '24 14:07 zdelagrange

I am unable to reproduce on a linux/amd64 machine, commented on open-telemetry/opentelemetry-collector/issues/10476

mx-psi avatar Jul 30 '24 15:07 mx-psi

@zdelagrange @mx-psi I observed this in a Ubuntu 20.04 environment and have not tried on MacOS Arm

ghost avatar Jul 30 '24 18:07 ghost

@zdelagrange @mx-psi I observed this in a Ubuntu 20.04 environment 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.)

svrnm avatar Aug 01 '24 09:08 svrnm

@zdelagrange @mx-psi I observed this in a Ubuntu 20.04 environment 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.)

this was on a local machine running ubuntu 20.04

ghost avatar Aug 05 '24 20:08 ghost