m6web/statsd-request-headers-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Symfony Bundle which stores request headers in statsd

v1.1.0 2016-09-22 15:51 UTC

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: ['*']