Comments (2)
What you say is true for SE. This issue addresses MP, which still uses separate MP MetricRegistry
instances for each scope as in the MP Metrics spec.
Previously, users could invoke RegistryFactory.getInstance().getRegistry(registryType)
from SE or MP code to get the MetricRegistry
for a particular type (now called scope). RegistryFactory
has moved into helidon-microprofile-metrics
in 4.0 and is currently package-private.
Currently the developer of an MP app can use injection to get a reference to a MetricRegistry
if the scope name is known at compile-time, but there is no way to retrieve a given scope's MetricRegistry
programmatically.
There are no public elements on RegistryFactory
currently in 4.0, so one way we could allow this use case would be to change the RegistryFactory
class to public and add a single static method:
public static MetricRegistry getRegistry(String scopeName) {
return getInstance().getRegistry(scopeName);
}
This would not expose any of the existing methods or their types publicly while keeping an API close to what Helidon 3 developers had used previously.
from helidon.
What is the use case here?
I thought that we have Metrics.globalRegistry()
that supports creating and getting meters for specific scopes...
from helidon.
Related Issues (20)
- Generalize OCI metrics library CDI preparation so upstream libraries can influence set-up of the `OciMetricsSupport` instanced
- [4.x] Generalize OCI metrics library CDI preparation so upstream libraries can influence set-up of the `OciMetricsSupport` instance
- Scalabity issue observed in Helidon SE 4.0.2 for Party Management product HOT 1
- Acking after previously unacked message can be skipped
- GitHub Actions: upgrade to v4 versions
- UCP integration needs native image configuration
- JtaConnection prohibits enlistment into a transaction whose status is STATUS_MARKED_ROLLBACK HOT 3
- Enhance `Status.java` with Additional Standard HTTP Status Codes
- MP telemetry test failures - intermittent, sometimes reliable in the pipeline or for certain developers locally; sometimes not
- OIDC ignores host, when forced https is enabled
- Documentation: Helidon concepts
- Default service configured as NodePort
- 2.x: MP quickstart fails to start: Error: Could not find or load main class HOT 2
- 4.x: LRA testing
- 4.x: oracle.ucp.UniversalConnectionPoolException: All connections in the Universal Connection Pool are in use HOT 2
- support proxy protocol v1/2 in helidon 2.x/3.x
- Unable to perform operation: resolve on io.helidon.microprofile.telemetry.HelidonTelemetryClientFilter HOT 2
- `examples/webserver/streaming` fails to start HOT 1
- 2.x: Helidon MP FaultTolerance fails In HelidonTest HOT 9
- Unexpected exception during security processing HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helidon.