SilexSetup
class SilexSetup
Class SilexSetup Setups Silex applications to measure: - the time of each route - the used memory of each route - the amount of requests of each route It also offers an function to be used for a Prometheus scrapable endpoint.
Methods
setupAndGetMetricsRoute(Application $app, AbstractStorage $storage)
Sets up the Silex middlewares where the actual measurements happen and returns a function to be used for a Prometheus scrapable endpoint.
Details
at line line 73
Closure
setupAndGetMetricsRoute(Application $app, AbstractStorage $storage)
Sets up the Silex middlewares where the actual measurements happen and returns a function to be used for a Prometheus scrapable endpoint.