m6web / statsd-request-headers-bundle
此包已被弃用,不再维护。未建议替代包。
Symfony Bundle,用于在 statsd 中存储请求头
v1.1.0
2016-09-22 15:51 UTC
Requires
- php: ~5.5|~7.0
- m6web/statsd-bundle: @stable
Requires (Dev)
- atoum/atoum-bundle: @stable
- atoum/visibility-extension: ^1.0
- m6web/coke: ~2.1
- m6web/symfony2-coding-standard: ~3.3.0
- symfony/symfony: ~2.7|~3.0
This package is auto-updated.
Last update: 2021-10-27 13:12:34 UTC
README
Symfony Bundle,用于从当前请求中获取一些 HTTP 头部信息,并在 statsd 中记录。
在选定的路由上配置的头信息将自动以增量形式记录到期望的 statsd 事件中。
配置
m6_web_statsd_request_headers: headers: ['X-my-header', 'X-my-other-header'] routes: ['my-route'] event: 'my.statsd.event'
在 statsd 中,事件将看起来像:my.statsd.event.route.currentroute.header.currentheader
。("currentroute" 和 "currentheader" 取决于您的请求)
您可以通过设置:headers: ['*']
或 routes: ['*']
来选择每个路由或每个头部。