You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We don't really like mixing our business code with monitoring stuff. We prefer to launch events with significant informations, listen to them, and send our monitoring stuffs in the listeners. The good news is that StatsdBundle is doing it for you.
57
+
We don't really like mixing our business code with monitoring stuff. We prefer to launch events with significant information, listen to them, and send our monitoring stuffs in the listeners. The good news is that StatsdBundle is doing it for you.
58
58
59
59
At each client level, you can specify events listened in order to build statsd increment or timing based on them.
60
-
For example, with the following configuration:
60
+
For example, with the following configuration:
61
61
62
62
```yaml
63
63
m6_statsd:
@@ -217,13 +217,13 @@ m6_statsd:
217
217
method : getExecutionTime
218
218
```
219
219
220
-
As you can see in the previous exemple, the event object also provides a `getUnderscoredCommandName` method. This method returns the command name with colons replaced by underscores. This can be useful because statsd uses colon as separator.
220
+
As you can see in the previous example, the event object also provides a `getUnderscoredCommandName` method. This method returns the command name with colons replaced by underscores. This can be useful because statsd uses colon as separator.
221
221
222
-
These events also provide a `getTiming` method (which is an alias of `getExecutionTime`) that allow to use simple `timer` entry.
222
+
These events also provide a `getTiming` method (which is an alias of `getExecutionTime`) that allows to use simple `timer` entry.
223
223
224
224
## Collect basics metrics on your Symfony application
225
225
226
-
Basics metrics can be http code, memory consumption, execution time. Thoses metrics can be collected when the `kernel.terminate` event.
226
+
Basics metrics can be http code, memory consumption, execution time. Thoses metrics can be collected from the `kernel.terminate` event.
227
227
228
228
Some basic collectors are already implemented in the bundle, but not activated by default.
0 commit comments