Skip to content

opentelemetry-configuration: add configuration support for OTLP JSON exporters - #5669

Open
herin049 wants to merge 2 commits into
open-telemetry:mainfrom
herin049:feat/5391
Open

herin049 wants to merge 2 commits into
open-telemetry:mainfrom
herin049:feat/5391

Conversation

@herin049

Copy link
Copy Markdown
Contributor

Description

Adds support to opentelemetry-configuration for configuring OTLP JSON log, span and metric exporters.

Fixes #5391

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?

uv run tox -e py314-test-opentelemetry-configuration

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 September 17, 2026 01:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

All three JSON exporter paths silently discard configured TLS certificate settings.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds declarative configuration support for OTLP/HTTP JSON exporters across traces, metrics, and logs.

Changes:

  • Selects protobuf or JSON exporters using OtlpHttpEncoding.
  • Supports JSON exporter compression mapping and dependency errors.
  • Adds configuration and factory tests plus a changelog entry.
File summaries
File Description
.changelog/5669.added Records JSON exporter support.
opentelemetry-configuration/src/opentelemetry/configuration/_common.py Supports uppercase compression enum members.
opentelemetry-configuration/src/opentelemetry/configuration/_tracer_provider.py Adds JSON span exporter creation.
opentelemetry-configuration/src/opentelemetry/configuration/_meter_provider.py Adds JSON metric exporter creation.
opentelemetry-configuration/src/opentelemetry/configuration/_logger_provider.py Adds JSON log exporter creation.
opentelemetry-configuration/tests/test_common.py Tests uppercase compression mappings.
opentelemetry-configuration/tests/file/test_loader.py Tests encoding enum conversion.
opentelemetry-configuration/tests/test_tracer_provider.py Tests JSON span configuration.
opentelemetry-configuration/tests/test_meter_provider.py Tests JSON metric configuration.
opentelemetry-configuration/tests/test_logger_provider.py Tests JSON log configuration.
Review details
  • Files reviewed: 10/10 changed files
  • Comments generated: 3
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Sep 17, 2026

Copy link
Copy Markdown

Pull request dashboard status

Waiting on maintainers · refreshed 2026-09-17 16:32 UTC

Merge when ready.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

@github-project-automation github-project-automation Bot moved this to Approved PRs in Python PR digest Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Approved PRs

Development

Successfully merging this pull request may close these issues.

opentelemetry-configuration: add support for the OTLP JSON exporter to declarative configuration

3 participants