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

docs: OpenTelemetry Collector example receiver config is invalid #13550

Open
axw opened this issue Jul 3, 2024 · 0 comments
Open

docs: OpenTelemetry Collector example receiver config is invalid #13550

axw opened this issue Jul 3, 2024 · 0 comments
Labels
Team:Docs Label for the Observability docs team

Comments

@axw
Copy link
Member

axw commented Jul 3, 2024

https://www.elastic.co/guide/en/observability/current/apm-open-telemetry-direct.html has sample OpenTelemetry Collector receiver and exporter config, which includes this invalid snippet:

receivers: 
  # ...
  otlp:

With recent versions of OpenTelemetry Collector it is necessary to specify protocols, and failing to do so will yield an error:

Error: invalid configuration: receivers::otlp: must specify at least one protocol when using the OTLP receiver
2024/07/02 09:46:37 collector server run finished with error: invalid configuration: receivers::otlp: must specify at least one protocol when using the OTLP receiver

So we should change it to, e.g.

otlp:
    protocols:
      grpc:
        endpoint: 0.0.0.0:4317
      http:
        endpoint: 0.0.0.0:4318
@axw axw added the Team:Docs Label for the Observability docs team label Jul 3, 2024
@axw axw changed the title docs: OpenTelemetry Collector example config is invalid docs: OpenTelemetry Collector example receiver config is invalid Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Docs Label for the Observability docs team
Projects
None yet
Development

No branches or pull requests

1 participant