-
Notifications
You must be signed in to change notification settings - Fork 579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix deprecation annotations in metrics; update doc; revise examples (2.x) #4396
Conversation
metrics/metrics/src/main/java/io/helidon/metrics/MetricsSupportProviderImpl.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doc looks good to me. I also double-checked the copyright years.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have reopened one comment, as we need to be clear on the builder method, otherwise this seems OK
See #4365
This PR:
@Deprecated
annotations as needed.docs
to refer to the non-deprecated alternatives.Recall that metrics is now split into these components:
helidon-metrics-api
- metrics-related interfaces (RegistryFactory
,MetricsSettings
, etc.) and a no-op implementationhelidon-metrics-service-api
-MetricsSupport
interface and no-op implhelidon-metrics
- full-featured metrics implIn the many places where examples used deprecated classes or methods this PR updates the code to use the non-deprecated alternatives.
Note that this involves changes to poms. Our doc tells users how to build and package metrics-capable apps which work regardless of whether the full metrics impl is present at runtime. This involves declaring build-time dependencies on
helidon-metrics-api
and/orhelidon-metrics-service-api
(as needed) and then deciding if and how to make the full-featured impl available at runtime.I have changed the examples accordingly (I should have done this when I created the new components), including adding a runtime-scope dependency on the full-featured metrics impl. This way the examples serve as metrics-capable apps, and they also exhibit live metrics as they have before.