equinix-labs / otel-cli

OpenTelemetry command-line tool for sending events from shell scripts & similar environments
Apache License 2.0
513 stars 55 forks source link

Failed to list services: server does not support the reflection API #365

Open mlindes opened 2 weeks ago

mlindes commented 2 weeks ago

I'm testing some tracing with otel & gRPC endpoints. I'm trying to do a base-level 101 check with this tool by running locally on my mac after installing with brew. I'm running otel-cli server tui in one window & I verified I get some traffic when I run otel-cli exec --service gw-testing --name "curl google" curl https://google.com from another window.

But using the grpcurl tool, I'm not able to get a successful response:

» grpcurl -vv localhost:4317 list
Failed to dial target host "localhost:4317": tls: first record does not look like a TLS handshake

» grpcurl -vv -plaintext localhost:4317 list
Failed to list services: server does not support the reflection API

» grpcurl -vv -insecure localhost:4317 list
Failed to dial target host "localhost:4317": tls: first record does not look like a TLS handshake

The grpcurl tool supports reflection so I think this should work... Do you know what I'm doing wrong?

mlindes commented 5 days ago

This can be solved solved with PR 369