Skip to content

[dynamic control] add jsonkeyvalue source#2702

Merged
trask merged 2 commits intoopen-telemetry:mainfrom
jackshirazi:policy10
Mar 20, 2026
Merged

[dynamic control] add jsonkeyvalue source#2702
trask merged 2 commits intoopen-telemetry:mainfrom
jackshirazi:policy10

Conversation

@jackshirazi
Copy link
Copy Markdown
Contributor

Description:

first step to being more explicit about the current source support which rather than generic json with generic mapping (which is possible), is json key-value, like {"some-key": "some-value"}

Existing Issue(s):

#2546

Testing:

Effectively the current json tests

Documentation:

docs will be updated after migration is complete

Outstanding items:

several more PRs to come to migrate from json to jsonkeyvalue and refactor providers, I'm trying to keep the PRs as small as possible which means some duplication in the meantime until complete

@jackshirazi jackshirazi requested a review from a team as a code owner March 19, 2026 15:27
Copilot AI review requested due to automatic review settings March 19, 2026 15:27
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds an explicit jsonkeyvalue source format option to begin migrating away from the generic json naming while keeping current parsing behavior.

Changes:

  • Adds JSONKEYVALUE to SourceFormat enum with config value jsonkeyvalue
  • Keeps current JSON parsing implementation by dispatching both json and jsonkeyvalue to the same parser

You can also share your feedback on Copilot code review. Take the survey.

@trask trask added this pull request to the merge queue Mar 20, 2026
Merged via the queue into open-telemetry:main with commit 5e2aaac Mar 20, 2026
21 checks passed
@jackshirazi jackshirazi deleted the policy10 branch April 1, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants