Conditions | 2 |
Paths | 4 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function handle($request, Closure $next) |
||
24 | { |
||
25 | $response = $next($request); |
||
26 | try { |
||
27 | $this->prometheusExporter->observeRequest($request, $response); |
||
28 | } catch (\Exception $e) { |
||
29 | app('log')->error('PrometheusMiddleware: failed to observe request', ['exception' => $e]); |
||
30 | } finally { |
||
31 | return $response; |
||
32 | } |
||
35 |