Skip to content

improve: simplified MicrometerMetricsV2 builder api#3220

Merged
csviri merged 1 commit intooperator-framework:nextfrom
csviri:mm2-builder-api
Mar 12, 2026
Merged

improve: simplified MicrometerMetricsV2 builder api#3220
csviri merged 1 commit intooperator-framework:nextfrom
csviri:mm2-builder-api

Conversation

@csviri
Copy link
Copy Markdown
Collaborator

@csviri csviri commented Mar 12, 2026

Signed-off-by: Attila Mészáros a_meszaros@apple.com

Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Copilot AI review requested due to automatic review settings March 12, 2026 09:22
@openshift-ci openshift-ci bot requested review from metacosm and xstefank March 12, 2026 09: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 simplifies the MicrometerMetricsV2 builder entrypoint by renaming the static factory method used to obtain a MicrometerMetricsV2Builder, and updates the sample operator to use the new API.

Changes:

  • Renamed MicrometerMetricsV2.newMicrometerMetricsV2Builder(MeterRegistry) to MicrometerMetricsV2.newBuilder(MeterRegistry).
  • Updated the metrics-processing sample operator to call the new builder factory method.

Reviewed changes

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

File Description
sample-operators/metrics-processing/src/main/java/io/javaoperatorsdk/operator/sample/metrics/MetricsHandlingSampleOperator.java Updates sample code to use the renamed builder factory method.
micrometer-support/src/main/java/io/javaoperatorsdk/operator/monitoring/micrometer/MicrometerMetricsV2.java Renames the public static builder factory method for MicrometerMetricsV2.

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

@csviri csviri merged commit c44c0a2 into operator-framework:next Mar 12, 2026
48 of 49 checks passed
csviri added a commit that referenced this pull request Mar 13, 2026
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
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