[dynamic control] add OpampPolicyProvider for the policy pipeline#2748
Merged
trask merged 4 commits intoopen-telemetry:mainfrom Apr 8, 2026
Merged
[dynamic control] add OpampPolicyProvider for the policy pipeline#2748trask merged 4 commits intoopen-telemetry:mainfrom
trask merged 4 commits intoopen-telemetry:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an OpAMP-backed PolicyProvider implementation to the dynamic-control telemetry policy pipeline, enabling policies to be sourced from OpAMP remote config (with a configurable polling interval hook for future dynamic updates).
Changes:
- Added
OpampPolicyProviderto subscribe to OpAMP remote config, parse payloads intoTelemetryPolicyinstances, and publish updates. - Added unit tests covering endpoint/service identity helpers and polling interval reset behavior.
- Added
opamp-clientand OkHttp dependencies to thedynamic-controlmodule.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| dynamic-control/src/main/java/io/opentelemetry/contrib/dynamic/policy/OpampPolicyProvider.java | New OpAMP-based policy provider with polling, parsing, mapping, validation, and update callbacks. |
| dynamic-control/src/test/java/io/opentelemetry/contrib/dynamic/policy/OpampPolicyProviderTest.java | Unit tests for endpoint normalization, service identity resolution, and polling interval reset. |
| dynamic-control/build.gradle.kts | Adds dependencies required by the OpAMP policy provider. |
dynamic-control/src/main/java/io/opentelemetry/contrib/dynamic/policy/OpampPolicyProvider.java
Outdated
Show resolved
Hide resolved
dynamic-control/src/main/java/io/opentelemetry/contrib/dynamic/policy/OpampPolicyProvider.java
Outdated
Show resolved
Hide resolved
dynamic-control/src/main/java/io/opentelemetry/contrib/dynamic/policy/OpampPolicyProvider.java
Show resolved
Hide resolved
dynamic-control/src/main/java/io/opentelemetry/contrib/dynamic/policy/OpampPolicyProvider.java
Show resolved
Hide resolved
…/policy/OpampPolicyProvider.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…/policy/OpampPolicyProvider.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
LikeTheSalad
approved these changes
Apr 8, 2026
trask
approved these changes
Apr 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
OpampPolicyProvider is one possible input to the telemetry policy pipeline. OpampPolicyProvider (and test) is added in this PR
Support for changing the OpAMP polling interval is included for a policy to be added in the future that let's that value be changed dynamically
Existing Issue(s):
#2546
Testing:
added
Documentation:
Added in the class
Outstanding items:
wiring up the policy pipeline, PRs to come