m6web / statsd-request-headers-bundle
Symfony Bundle which stores request headers in statsd
Installs: 63 962
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 35
Forks: 0
Open Issues: 0
Type:symfony-bundle
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 which fetches some HTTP headers from current request and logs them in statsd.
Configured headers on selected routes are automatically logged as increment in desired statsd event.
Configuration
m6_web_statsd_request_headers: headers: ['X-my-header', 'X-my-other-header'] routes: ['my-route'] event: 'my.statsd.event'
In statsd the event will look like : my.statsd.event.route.currentroute.header.currentheader
. (With "currentroute" and "currentheader" depending of your request)
You can select every route or every header by setting :
headers: ['*']
or
routes: ['*']