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? |
Answered by
srikanthccv
Jul 3, 2022
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 |
1 reply
Answer selected by
srikanthccv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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