-
Notifications
You must be signed in to change notification settings - Fork 893
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
Should we have API for Logs in Open-telemetry? #2506
Comments
I would suggest that we should not have a full-fledged logging API in OpenTelemetry, unless there is a language that doesn't already have a plethora of logging libraries & APIs to choose from where it might make sense to define one. But, I think having an Events API that is backed by the logs SDK and data model sounds like a fantastic idea to me, since I'm not aware of any such thing in Java (aside from those proprietary APIs implemented by observability vendors). |
YES iff (if-and-only-if) a programming language doesn't have a well-established logging API (e.g. C++). For languages that already have established logging API, even the API might not be "ideal", creating yet another API is likely to make the situation even worse. |
@jkwatson @reyang We have been actively discussing the API in the Log SIG for the last few weeks. We intend to make it very clear that the API is not intended to be used as a general-purpose logging API. Instead we intend to advertise 2 distinct use cases:
|
Regarding OTel Log SDK with the LogEmitter, totally. Regarding API to emit structured events - many programming languages have already established good way to do it, on the other side - there are also languages which do not have a good logging API at all (at least not a well established one). |
Can you post some links to these? |
@jack-berg thinks, in this comment, that the Log API should include both Events API and Log Appender API. Comments?
|
I think we have a path forward and we can close this issue, since we have the answer: "yes, in a specific form defined by OTEL202". From yesterday’s Log SIG meeting notes:
|
What are you trying to achieve?
For modeling RUM events, we have chosen to use LogRecord as the underlying data model and hence proposing to have an API based on LogRecords for the purpose of creating Events. However, it is not clear if API should be extended to both logs and events use-cases or just events.
What did you expect to see?
We have a document detailing why we need an API for creating Events and an initial version of the API interface, it has a section on the concerns for having Logs API in Open-telemetry. This issue is created to invite folks to review the concerns and provide thoughts on the idea of having Logs API. Feel free to add comments within the google doc.
https://docs.google.com/document/d/1C9m3rctxFoHRiUsG3lSrOKZexsliNgl8D_6G6963Llo/edit?usp=sharing
cc: @tigrannajaryan @jack-berg
Additional context.
Add any other context about the problem here. If you followed an existing documentation, please share the link to it.
The text was updated successfully, but these errors were encountered: