-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
OTLP receiver with HTTP protocol returns 404 in version 0.29.0 #3540
Comments
Actually, I don't think it's a bug. According to the documentation, you should add necessary headers to make it work.
Can you try again with one of the above headers? |
@dgarciarubio indeed we changed the endpoint to return 404 if no Content-Type sent. Can you post the request that you send? |
Yeah, it's definitely the missing header which produced the 404 response. Including it produces the expected behaviour. Should this be mentioned in the changelog? I think so, because clients should be aware of this new behaviour. Don't know under what category though. |
I'll close the issue, as the behaviour is expected, acording to the documentation. |
Describe the bug
The http endpoint for traces logs and metrics returns 404 in 0.29.0
Steps to reproduce
Start a container with the image
otel/opentelemetry-collector:0.29.0
, with the otlp receiver with http protocol enabled.Make a post request to any of the endpoints:
/v1/traces
/v1/logs
/v1/metrics
What did you expect to see?
The container should respond with status 200
What did you see instead?
The container responds with status 404
What version did you use?
Version: 0.29.0
What config did you use?
docker-compose.yml:
otel-collector-config.yml:
Environment
Microsoft Windows 10 Version 21H1 (OS Build 19043.1052)
Docker for Windows Version 3.3.3 (64133), Engine 20.10.6, Compose 1.29.1
The text was updated successfully, but these errors were encountered: