| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 38 | protected static function logDuration(Request $request, Response $response, $startTime) |
||
| 39 | { |
||
| 40 | $duration = microtime(true) - $startTime; |
||
| 41 | |||
| 42 | $tags = [ |
||
| 43 | "status_code" => $response->getStatusCode() |
||
| 44 | ]; |
||
| 45 | |||
| 46 | if (!config('datadog-helper.middleware_disable_url_tag', false)) { |
||
| 47 | $tags["url"] = $request->getSchemeAndHttpHost() . $request->getRequestUri(); |
||
| 48 | } |
||
| 49 | |||
| 50 | Datadog::microtiming('request_time', $duration, 1, $tags); |
||
| 51 | } |
||
| 53 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths