Skip to content

Implement custom protoc plugin to generate OTLP JSON class definitions#4910

Open
herin049 wants to merge 3 commits intoopen-telemetry:mainfrom
herin049:feat/protoc-otlp-json-plugin
Open

Implement custom protoc plugin to generate OTLP JSON class definitions#4910
herin049 wants to merge 3 commits intoopen-telemetry:mainfrom
herin049:feat/protoc-otlp-json-plugin

Conversation

@herin049
Copy link

@herin049 herin049 commented Feb 11, 2026

Description

This PR implements a custom protoc plugin to automatically generate OTLP JSON class definitions. Consensus was reached deciding that a custom protoc plugin would be the best route for adding support for OTLP JSON while minimizing the number of runtime dependencies (for additional context reference #4886). This PR is a refined version of the first part of a set of changes that are in #4902. Please view the draft PR for an overview of how these packages will be used.

Fixes #1003

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

tox run -e $(tox --listenvs | grep opentelemetry-protojson | tr '\n' ',')

Does This PR Require a Contrib Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@herin049 herin049 requested a review from a team as a code owner February 11, 2026 23:18
@herin049 herin049 force-pushed the feat/protoc-otlp-json-plugin branch from f66380d to a9d10c7 Compare February 12, 2026 04:09
@xrmx xrmx moved this to Ready for review in @xrmx's Python PR digest Feb 12, 2026
@mmanciop
Copy link
Contributor

I am very much looking forward to this landing: protobuf is a pretty toxic dependency when automatically injecting Python SDKs with the OpenTelemetry Injector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Ready for review

Development

Successfully merging this pull request may close these issues.

Support JSON over HTTP in OTLP exporter

2 participants