-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Sending logs with http to otlp receiver not working as expected #7009
Comments
After investigating the same problem with traces that gets empty partialSuccess, it seems that when the format of logs/traces is incorrect, it just returns an empty partialSuccess and nothing more. not any error/warning logs in otel, and not a return code that is not 200. is this on purpose ? |
You sent an empty request, is that an error? What should |
@bogdandrutu The OTLP specification says that partial success messages can contain a rejected count of This also occurs with OTLP messages with JSON encoding when an unknown key is present in the payload (I have seen this come up when |
@evan-bradley thank you for your answer! Another thing I thought would help developers understand what is happening is to add some access logs to the http receiver. It took me a while to understand that the requests are acually getting to the collector's receiver. |
IMO, we need a troubleshooting guide showing people how to determine whether things are arriving at the collector and if they are flowing through components up to the final destination. |
@noamisr Can you please send me a sample json that can be used for logs? |
I still don't have a working sample of json log. I assumed that the explanation of why the traces' endpoint behaved like this is the same as with logs' endpoint. Is that answer your question? |
Yes. Btw, I found the sample logs and traces both at https://opentelemetry.io/docs/reference/specification/protocol/file-exporter/#examples |
I am moving to close this issue as inactive. Please comment and reopen if more work is needed. |
Describe the bug
After configuring a simple pipeline in my otel-collector, and trying to send logs to the otlp via http, the service returned 200OK with an empty partialSuccess.
Steps to reproduce
using the latest collector, and config file:
and calling a simple http request - for example curl:
What did you expect to see?
Some logs in the otel collector logs, for receiving http requests in the otel receiver
Metrics seems fine also:
What did you see instead?
No logs at all. not from the logging exporter or the logs of the collector itself.
What version did you use?
Version: v0.70.0
What config did you use?
Config: (e.g. the yaml config file)
Environment
OS: "Ubuntu 20.04"
The text was updated successfully, but these errors were encountered: