You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Return 400 instead of 500 on incorrect OTLP payload (#6599)
## Which problem is this PR solving?
- Resolves#6598
## Description of the changes
- Changed StatusInternalServerError to StatusBadRequest because
otlp2traces doing the unmarshaling will go into error if there is error
in the payload
- Added a new unit test for the change
## How was this change tested?
- make lint test => pass
## Checklist
- [x] I have read
https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md
- [x] I have signed all commits
- [x] I have added unit tests for the new functionality
- [x] I have run lint and test steps successfully
- for `jaeger`: `make lint test`
- for `jaeger-ui`: `npm run lint` and `npm run test`
---------
Signed-off-by: cs-308-2023 <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Co-authored-by: Yuri Shkuro <[email protected]>
Co-authored-by: Yuri Shkuro <[email protected]>
0 commit comments