-
Notifications
You must be signed in to change notification settings - Fork 635
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
Add support for OpenTelemetry logging #1890
Comments
Here is how I plan to send PRs
|
Hi, thank you for working on this, this is very exciting! I have 2 questions:
And I left a followup question in https://github.com/open-telemetry/opentelemetry-python/pull/1903/files#r662742003 |
No the LogRecord data model is different and also span events are limited in what they accept as attribute values.
This https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-logging?. And to give you more context you can configure the processor to export to any place you want file or n/w dest or anything really. It is designed in such way that you can plug in your own exporter if there is a need. |
Hmm, I guess I'm a bit confused now because the spec explicitly says that logs and events are the same thing. Is there any reading material you could point me to that might help me resolve my confusion? I want to minimize how much I hijack this thread with naïve questions. I guess my main concern was having to configure multiple things / having multiple things writing OpenTelemetry data to the network. Would I be able to configure this handler to share a single batcher/exporter with manually emitted traces, or an instrumented framework?
Yeah, I looked at that before. It seems like it's modifying the global log record factory. I would have made it a filter so that it could be applied selectively, but I guess the point is zero configuration, which that achieves. |
The intent is to reduce the notion of |
Initial set of tasks are completed. Anyone interested in trying this out can use pip editable install and use the collector exporter. |
@lonewolf3739 |
Yes, maybe close this after next release? |
What's the plan for shipping this along with the rest of the packages? |
@codeboten |
I wonder if we should ship it altogether with metrics. As in have a single experimental package, rather than a package for logging and another for metrics... any thoughts? |
@codeboten |
I would like to use the experimental metrics support and the experimental logging support. It seems easier to me to have a single experimental version to pull in, but as long as it is possible to achieve in some way, I'm happy. |
@lonewolf3739 We did not ship metrics as part of the most recent release because it is not usable yet. If we plan on shipping both together, should we wait or can logs be shipped simply by itself as "experimental"? |
It can be released alone as experimental but I am fine with shipping them together as well. I remember some people on slack channel also asked for the possible release of logs sdk (along with otlp-grpc-exporter). maybe release logs now and release them combined when metrics is ready? |
Hello, I'm also interested by an experimental release of the logs sdk. It would be even better if it contained both the metrics and the logs sdk but I can live with the logs sdk alone for now. |
Sure, I think releasing logs separately makes more sense. |
@lonewolf3739 |
Currently there's an experimental specification for the logging signal:
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/data-model.md#log-and-event-record-definition.
The work for this has started in #1882
The text was updated successfully, but these errors were encountered: