File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ in this case the metric name is the route name ("HelloWorld") because we have a
8080``` java
8181GET (" /" , new MyHandler ());
8282
83- public class MyHandler implements RouteHandler {
83+ static class MyHandler implements RouteHandler {
8484
8585 @Metered
8686 public void handle (RouteContext routeContext ) {
@@ -89,7 +89,7 @@ public class MyHandler implements RouteHandler {
8989
9090}
9191```
92- in this case the metric name is "MyHandler.handle" (route handler class name and "handle" - method name)
92+ in this case the metric name is "MyHandler.handle" (route handler class name and method name)
9393
9494See below how to add a metric (time) in a controller
9595
@@ -103,6 +103,7 @@ public class ContactsController extends Controller {
103103
104104}
105105```
106+ in this case the metric name is "ContactsController.index" (controller class name and method name)
106107
107108#### Collecting Additional Metrics
108109
You can’t perform that action at this time.
0 commit comments