Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,164 changes: 558 additions & 606 deletions .github/workflows/test_0.yml

Large diffs are not rendered by default.

704 changes: 704 additions & 0 deletions .github/workflows/test_1.yml

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
([#4862](https://github.com/open-telemetry/opentelemetry-python/pull/4862))
- `opentelemetry-exporter-otlp-proto-http`: fix retry logic and error handling for connection failures in trace, metric, and log exporters
([#4709](https://github.com/open-telemetry/opentelemetry-python/pull/4709))
- Implement custom protoc plugin to generate OTLP JSON class definitions
([#4910](https://github.com/open-telemetry/opentelemetry-python/pull/4910))

## Version 1.39.0/0.60b0 (2025-12-03)

Expand Down
1 change: 1 addition & 0 deletions codegen/opentelemetry-codegen-json/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tests/generated/otel_test_json
22 changes: 22 additions & 0 deletions codegen/opentelemetry-codegen-json/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
OpenTelemetry JSON Code Generator
=================================

|pypi|

.. |pypi| image:: https://badge.fury.io/py/opentelemetry-codegen-json.svg
:target: https://pypi.org/project/opentelemetry-codegen-json/

This library is a protocol buffer plugin that generates code for the OpenTelemetry protocol in JSON format.

Installation
------------

::

pip install opentelemetry-codegen-json


References
----------

* `OpenTelemetry <https://opentelemetry.io/>`_
49 changes: 49 additions & 0 deletions codegen/opentelemetry-codegen-json/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "opentelemetry-codegen-json"
dynamic = ["version"]
description = "Protobuf plugin to generate JSON serializers and deserializers for OpenTelemetry protobuf messages"
readme = "README.rst"
license = "Apache-2.0"
requires-python = ">=3.9"
authors = [
{ name = "OpenTelemetry Authors", email = "cncf-opentelemetry-contributors@lists.cncf.io" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: OpenTelemetry",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"protobuf>=4.25.3",
"types-protobuf>=4.24",
]

[project.scripts]
protoc-gen-otlp_json = "opentelemetry.codegen.json.plugin:main"

[project.urls]
Homepage = "https://github.com/open-telemetry/opentelemetry-python/codegen/opentelemetry-codegen-proto-json"
Repository = "https://github.com/open-telemetry/opentelemetry-python"

[tool.hatch.version]
path = "src/opentelemetry/codegen/json/version/__init__.py"

[tool.hatch.build.targets.sdist]
include = [
"/src",
]

[tool.hatch.build.targets.wheel]
packages = ["src/opentelemetry"]
Loading
Loading