Skip to content

Instantly share code, notes, and snippets.


m0mus/ Secret

Last active Sep 9, 2018
What would you like to do?
Helidon Takes Flight #2
// create metric registry
MetricsSupport metricsSupport = MetricsSupport.create();
// get the registry
MetricRegistry registry = RegistryFactory
// create a counter
Counter helloCounter = registry.counter("helloCounter");
Routing routing = Routing.builder()
// register metric support with web server
.get("/hello", (req, res) -> {
// increase counter;
res.send("Hello World");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.