Skip to content

[dynamic control] Align to name and ID in spec for policies#2926

Merged
jaydeluca merged 7 commits into
open-telemetry:mainfrom
jackshirazi:policy-phase2-04
Jun 21, 2026
Merged

[dynamic control] Align to name and ID in spec for policies#2926
jaydeluca merged 7 commits into
open-telemetry:mainfrom
jackshirazi:policy-phase2-04

Conversation

@jackshirazi

@jackshirazi jackshirazi commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Description:

Step 1 of aligning to the telemetry policy spec. Specifically policies had a name and ID. To keep reviewing easier, this PR adds only the identity class, unused, and the documentation. Future PRs will add the identity to the policies and provide tests

Existing Issue(s):

part of #2868

Testing:

Tests will be added when the identity is added to the policies in the next step

Documentation:

Added

Outstanding items:

The identity added here needs to be added to policies in the next step. Additionally see #2868 .

@jackshirazi
jackshirazi requested a review from a team as a code owner June 17, 2026 14:08
Copilot AI review requested due to automatic review settings June 17, 2026 14:08
@github-actions
github-actions Bot requested a review from LikeTheSalad June 17, 2026 14:09

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.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a dedicated identity value object for telemetry policies and documents how policy type/id/name are intended to be used in dynamic-control.

Changes:

  • Introduces TelemetryPolicyIdentity (id + name) with validation and value semantics (equals/hashCode/toString).
  • Expands dynamic-control README with guidance and examples for policy type/id/name usage.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
dynamic-control/src/main/java/io/opentelemetry/contrib/dynamic/policy/TelemetryPolicyIdentity.java New identity/value object for policy instances with basic validation + equality semantics.
dynamic-control/README.md Documentation clarifying policy type/id/name semantics with YAML/JSON examples.

Comment thread dynamic-control/README.md Outdated
@jaydeluca
jaydeluca added this pull request to the merge queue Jun 21, 2026
Merged via the queue into open-telemetry:main with commit 362f6d4 Jun 21, 2026
22 checks passed
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