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

Documentation issue: Building a receiver (tutorial) #4738

Open
hyang023 opened this issue Jun 24, 2024 · 9 comments
Open

Documentation issue: Building a receiver (tutorial) #4738

hyang023 opened this issue Jun 24, 2024 · 9 comments
Labels
bug Something isn't working sig:collector

Comments

@hyang023
Copy link
Contributor

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

@svrnm svrnm added bug Something isn't working sig:collector labels Jun 24, 2024
@svrnm
Copy link
Member

svrnm commented Jun 24, 2024

@open-telemetry/collector-approvers ptal

@zdelagrange
Copy link

I am experiencing the same issue.

@mihaisevencode
Copy link

I'm experiencing this issue too

@svrnm
Copy link
Member

svrnm commented Jul 30, 2024

thanks @zdelagrange @mihaisevencode

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

@zdelagrange
Copy link

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?

@mx-psi
Copy link
Member

mx-psi commented Jul 30, 2024

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

@hyang023
Copy link
Contributor Author

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

@svrnm
Copy link
Member

svrnm commented Aug 1, 2024

@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 svrnm moved this to Changes Requested in SIG Comms: PRs & Issues Aug 1, 2024
@hyang023
Copy link
Contributor Author

hyang023 commented Aug 5, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sig:collector
Projects
Status: Changes Requested
Development

No branches or pull requests

5 participants