We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1002b3e + ba350f2 commit 895d015Copy full SHA for 895d015
src/Components/Prometheus/Collectors/HttpRequestCollector.php
@@ -16,6 +16,10 @@ class HttpRequestCollector extends MetricCollector
16
public function __construct(array $config)
17
{
18
parent::__construct($config);
19
+
20
+ if (!isset($this->config['max_duration_time_window'])) {
21
+ $this->config['max_duration_time_window'] = 60;
22
+ }
23
24
$routes = method_exists(app(), 'getRoutes') ? app()->getRoutes() : app('router')->getRoutes();
25
if ($routes instanceof \Illuminate\Routing\RouteCollection) { // Laravel
0 commit comments