Skip to content

Commit 9d48c00

Browse files
committed
Improve metrics section
1 parent 43beabf commit 9d48c00

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

_posts/2015-04-07-metrics.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ in this case the metric name is the route name ("HelloWorld") because we have a
8080
```java
8181
GET("/", 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

9494
See 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

0 commit comments

Comments
 (0)