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

[Bug]: otlp example does not work without configuration update #1998

Open
krlohnes opened this issue Aug 7, 2024 · 2 comments
Open

[Bug]: otlp example does not work without configuration update #1998

krlohnes opened this issue Aug 7, 2024 · 2 comments
Labels
documentation/examples Improvements or additions to documentation or examples

Comments

@krlohnes
Copy link

krlohnes commented Aug 7, 2024

What happened?

I tried to run basic-otlp example and it simply didn't work.

I update the first section of otel-collector-config.yml to the following

receivers:
  otlp:
    protocols:
      grpc:
        endpoint: 0.0.0.0:4317

and it started working.

API Version

0.24.0

SDK Version

0.24.1

What Exporter(s) are you seeing the problem on?

OTLP

Relevant log output

OpenTelemetry log error occurred. Exporter otlp encountered the following errors: the grpc server returns error (The operation was cancelled): , detailed error message: operation was canceled
@krlohnes krlohnes added bug Something isn't working triage:todo Needs to be traiged. labels Aug 7, 2024
@cijothomas
Copy link
Member

Need a similar fix like https://github.com/open-telemetry/opentelemetry-rust/pull/1982/files to this example too. @krlohnes Would you mind sending a PR to fix?

@cijothomas cijothomas added documentation/examples Improvements or additions to documentation or examples and removed bug Something isn't working triage:todo Needs to be traiged. labels Aug 8, 2024
@lalitb
Copy link
Member

lalitb commented Aug 8, 2024

krlohnes added a commit to krlohnes/opentelemetry-rust that referenced this issue Aug 8, 2024
Fixes open-telemetry#1998

With updates to the otel collector 0.104+, the collector now binds to
localhost by default. The config now needs to explicitly allow access
from outside the docker container.
lalitb added a commit to krlohnes/opentelemetry-rust that referenced this issue Aug 14, 2024
TommyCpp added a commit to krlohnes/opentelemetry-rust that referenced this issue Aug 14, 2024
cijothomas added a commit to krlohnes/opentelemetry-rust that referenced this issue Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation/examples Improvements or additions to documentation or examples
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants