Skip to content

Commit 9abf25c

Browse files
committed
feat(exporter): Implement OTLP JSON exporters for HTTP transport
Add new packages for JSON-based OTLP exporters as alternatives to the existing Protobuf-based exporters: - opentelemetry-exporter-otlp-json-common: Common JSON encoding functionality - opentelemetry-exporter-otlp-json-http: HTTP transport implementation These exporters enable compatibility with services requiring JSON format instead of Protobuf. Implementation includes full support for traces, metrics, and logs with comprehensive test coverage following project guidelines. Closes open-telemetry#1003
1 parent e01fa0c commit 9abf25c

38 files changed

+6143
-444
lines changed

.github/workflows/lint_0.yml

+36
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,24 @@ jobs:
178178
- name: Run tests
179179
run: tox -e lint-opentelemetry-exporter-otlp-proto-common
180180

181+
lint-opentelemetry-exporter-otlp-json-common:
182+
name: opentelemetry-exporter-otlp-json-common
183+
runs-on: ubuntu-latest
184+
steps:
185+
- name: Checkout repo @ SHA - ${{ github.sha }}
186+
uses: actions/checkout@v4
187+
188+
- name: Set up Python 3.12
189+
uses: actions/setup-python@v5
190+
with:
191+
python-version: "3.12"
192+
193+
- name: Install tox
194+
run: pip install tox
195+
196+
- name: Run tests
197+
run: tox -e lint-opentelemetry-exporter-otlp-json-common
198+
181199
lint-opentelemetry-exporter-otlp-combined:
182200
name: opentelemetry-exporter-otlp-combined
183201
runs-on: ubuntu-latest
@@ -232,6 +250,24 @@ jobs:
232250
- name: Run tests
233251
run: tox -e lint-opentelemetry-exporter-otlp-proto-http
234252

253+
lint-opentelemetry-exporter-otlp-json-http:
254+
name: opentelemetry-exporter-otlp-json-http
255+
runs-on: ubuntu-latest
256+
steps:
257+
- name: Checkout repo @ SHA - ${{ github.sha }}
258+
uses: actions/checkout@v4
259+
260+
- name: Set up Python 3.12
261+
uses: actions/setup-python@v5
262+
with:
263+
python-version: "3.12"
264+
265+
- name: Install tox
266+
run: pip install tox
267+
268+
- name: Run tests
269+
run: tox -e lint-opentelemetry-exporter-otlp-json-http
270+
235271
lint-opentelemetry-exporter-prometheus:
236272
name: opentelemetry-exporter-prometheus
237273
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)