Skip to content

initial TelemetryPolicy#2592

Merged
trask merged 4 commits intoopen-telemetry:mainfrom
jackshirazi:policy1
Feb 2, 2026
Merged

initial TelemetryPolicy#2592
trask merged 4 commits intoopen-telemetry:mainfrom
jackshirazi:policy1

Conversation

@jackshirazi
Copy link
Copy Markdown
Contributor

Initial implementation of TelemetryPolicy per #2546.

A full working implementation of the telemetry policy proposal is here in this branch

@jackshirazi jackshirazi requested a review from a team as a code owner January 28, 2026 14:22
Copilot AI review requested due to automatic review settings January 28, 2026 14:22
@github-actions github-actions Bot requested a review from LikeTheSalad January 28, 2026 14:22
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

This PR introduces an initial implementation of TelemetryPolicy based on the telemetry policy proposal. The implementation provides a foundational data structure for representing telemetry policies with a type identifier and JSON specification content.

Changes:

  • Adds a new TelemetryPolicy class to represent telemetry policies with type and specification fields
  • Includes Jackson databind dependency for JSON handling

Reviewed changes

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

File Description
dynamic-control/src/main/java/io/opentelemetry/contrib/dynamic/policy/TelemetryPolicy.java Implements the core TelemetryPolicy class with type, spec fields, and standard Object methods
dynamic-control/build.gradle.kts Adds Jackson databind dependency required for JSON handling

import java.util.Objects;
import javax.annotation.Nullable;

public class TelemetryPolicy {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is this a public API? if so, can you add javadoc?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

added

@trask trask added this pull request to the merge queue Feb 2, 2026
Merged via the queue into open-telemetry:main with commit dc81b54 Feb 2, 2026
21 checks passed
@jackshirazi jackshirazi deleted the policy1 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.

3 participants