-
Notifications
You must be signed in to change notification settings - Fork 821
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
Allow exporting logs using OTLP exporter #3061
Comments
We actually discussed this in the last SIG meeting and as far as I remember someone was interested in starting work on this. There were a couple people interested in the topic. Logs work hasn't really started yet in JS since the maintainers are already stretched a bit thin and trying to focus on getting the metrics SDK ready for GA. |
I find that the logs specification is not yet feature-freeze, so it might be worth waiting for the spec to be ready? |
I think the data model is stable and has been for a while. Creating at least the exporter and a basic experimental sdk shouldn't be too much work and is unlikely to be broken by future spec. I don't have time to work on this, but I wouldn't block anyone who wants to work on this. I think @martinkuba mentioned in a SIG meeting he may have some interest? |
That is correct - I am interested in working on this along with a prototype for the Events API. |
I'm not sure how best I can help, but I'm also interested in this! Been using the Logs Exporter in .NET projects to nice success. |
I did a (very naive) implementation of this for Cloudflare Workers, and am game to take this on or assist too! Reading open-telemetry/opentelemetry-specification#2506 it sounds like the "API" is currently undefined except the types defined in the SDK spec. Would an Following on, would a good MVP be |
I think just having a SDK is the right way, at least thats how java sig went: https://github.com/open-telemetry/opentelemetry-java/tree/main/sdk/logs/src/main/java/io/opentelemetry/sdk/logs |
Actually it seems that the API is on its way: open-telemetry/opentelemetry-specification#2676 |
Yup! I figure I can start working from the above assumption and circle back around the API once it's officially landed in the spec. That at least allows instrumenting loggers (and potentially console). Edit: though the API is looking fairly simple... |
I put this aside while the API was being discussed, and I have opened a draft implementation of the API. |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
This issue was closed because it has been stale for 14 days with no activity. |
The initial ask of the issue that fits the scope of this repository is done (exporting Logs via OTLP), so I'm closing this issue. 🙂
A request for a winston integration would be very fitting for the open-telemetry/opentelemetry-js-contrib repository, which is home to instrumentations that take care of this type of thing. If this is something of interest, please open an issue there. 🙂 |
Is your feature request related to a problem? Please describe.
Exporting logs from the application to otel collector directly using an otlp exporter is not possible
A clear and concise description of what the problem is.
It is possible to export traces and metrics to an otel collector, from which they can then be processed and further exported to other sources as required. However, the same is not possible with logs. When logs are attempted to be sent over HTTP to the otel /v1/logs/ endpoint, it returns a 400 bad request error because the logs are not formatted in the OTLP format
Describe the solution you'd like
Integrations into common loggers like winston that would allow exporting the logs into OTLP format, similar to traces exporter and metrics exporter, we could have a logs exported
Describe alternatives you've considered
Both approaches are tedious and less desirable than having a logs exporter
The text was updated successfully, but these errors were encountered: