Easiest way to parse OTLP in Python? #2799
-
I'm looking to do a project where I'll want to parse OTLP in Python. Is there a Python OTLP parser available anywhere in the open-telemetry ecosystem that I could leverage/re-use? If not, what would be the steps to create one? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We already release a generate proto as a package https://pypi.org/project/opentelemetry-proto/. This is the same package used in OTLP exporters. And it should be straight forward to use Message API to ser/deser https://googleapis.dev/python/protobuf/latest/google/protobuf/message.html#google.protobuf.message.Message |
Beta Was this translation helpful? Give feedback.
We already release a generate proto as a package https://pypi.org/project/opentelemetry-proto/. This is the same package used in OTLP exporters. And it should be straight forward to use Message API to ser/deser https://googleapis.dev/python/protobuf/latest/google/protobuf/message.html#google.protobuf.message.Message