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
|`environment`|`production`| Trace environment tag |
169
172
|`app_version`|`''`| Application version tag |
170
173
174
+
`profile_http_status_codes` is configured in CakePHP config rather than an environment variable. The default `[...range(200, 299), ...range(500, 599)]` submits successful responses and server errors, while dropping common noisy client responses such as `404`. Add codes like `404` if you want to keep them.
175
+
171
176
### Runtime config
172
177
173
178
If you want to override settings programmatically, do it before the plugin uses the config:
@@ -246,6 +251,8 @@ The HTTP lifecycle matches against normalized identifiers, not just the raw URL.
246
251
247
252
HTTP profiling is provided by [`PerfbaseMiddleware`](src/PerfbaseMiddleware.php). The middleware guarantees lifecycle cleanup with `try`/`finally` and attaches response or exception data before submission.
248
253
254
+
By default, only responses with a status code in `profile_http_status_codes` are submitted. The shipped default is `[...range(200, 299), ...range(500, 599)]`.
0 commit comments