Fix universal database endpoint cap by trask · Pull Request #20017 · open-telemetry/opentelemetry-java-instrumentation · GitHub
Skip to content

Fix universal database endpoint cap - #20017

Merged
laurit merged 2 commits into
mainfrom
trask-universal-endpoint-cap
Sep 8, 2026
Merged

laurit merged 2 commits into
mainfrom
trask-universal-endpoint-cap

Conversation

@trask

@trask trask commented Sep 8, 2026

Copy link
Copy Markdown
Member

Make the database server target cap a fixed five endpoints across all callers.

Remove DbServerTargetBuilder.setMaxEndpoints(int), apply the fixed cap to Geode locator targets, and update coverage for sorted truncation and validation beyond the cap.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

@trask
trask marked this pull request as ready for review September 8, 2026 00:39
@trask
trask requested a review from a team as a code owner September 8, 2026 00:39
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@trask
trask marked this pull request as draft September 8, 2026 00:43

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.

🟢 Approval recommended

The focused implementation consistently enforces the fixed cap and covers the affected behavior.

Pull request overview

Enforces a universal five-endpoint cap for database server targets.

Changes:

  • Removes configurable endpoint limits.
  • Caps and sorts Geode locator targets.
  • Updates truncation and validation tests.
File summaries
File Description
GeodeServerTargetBuilder.java Applies the fixed cap to locators.
GeodeServerTargetBuilderTest.java Verifies sorted locator truncation.
DbServerTargetTest.java Tests fixed-cap sorting and validation.
DbServerTargetBuilder.java Makes the five-endpoint cap non-configurable.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Balanced

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

@trask
trask marked this pull request as ready for review September 8, 2026 03:44
@opentelemetry-pr-dashboard
opentelemetry-pr-dashboard Bot requested a balanced review from Copilot September 8, 2026 03:46

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.

🟢 Approval recommended

The implementation consistently enforces the fixed cap and adequately covers the affected behavior.

Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

@laurit
laurit merged commit d5751c2 into main Sep 8, 2026
100 checks passed
@laurit
laurit deleted the trask-universal-endpoint-cap branch September 8, 2026 05:12
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