File tree 3 files changed +7
-10
lines changed
3 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 13
13
14
14
namespace Guanguans \LaravelExceptionNotify \Collectors ;
15
15
16
- use Guanguans \LaravelExceptionNotify \Support \Utils ;
17
16
use Illuminate \Container \Container ;
18
17
use Illuminate \Support \Carbon ;
19
18
@@ -33,9 +32,7 @@ public function collect(): array
33
32
'php version ' => \PHP_VERSION ,
34
33
'environment ' => $ this ->container ->environment (),
35
34
'debug ' => $ this ->container ->hasDebugModeEnabled (),
36
- 'locale ' => $ this ->container ->getLocale (),
37
35
'in console ' => $ this ->container ->runningInConsole (),
38
- 'memory ' => Utils::humanBytes (memory_get_peak_usage (true )),
39
36
];
40
37
}
41
38
}
Original file line number Diff line number Diff line change @@ -23,10 +23,11 @@ public function __construct(private Request $request) {}
23
23
public function collect (): array
24
24
{
25
25
return [
26
- 'path ' => $ this ->request ->decodedPath (),
26
+ 'url ' => $ this ->request ->url (),
27
27
'ip ' => $ this ->request ->ip (),
28
28
'method ' => $ this ->request ->method (),
29
29
'controller action ' => $ this ->request ->route ()?->getActionName(),
30
+ 'memory ' => Utils::humanBytes (memory_get_peak_usage (true )),
30
31
'duration ' => blank ($ startTime = \defined ('LARAVEL_START ' ) ? LARAVEL_START : $ this ->request ->server ('REQUEST_TIME_FLOAT ' ))
31
32
? 'Unknown '
32
33
: Utils::humanMilliseconds ((microtime (true ) - $ startTime ) * 1000 ),
Original file line number Diff line number Diff line change 1
1
{
2
2
"Application" : {
3
- "time" : " 2025-03-22 08:20:39 " ,
3
+ "time" : " 2025-03-23 06:28:50 " ,
4
4
"name" : " Laravel" ,
5
5
"version" : " 9.52.20" ,
6
6
"php version" : " 8.0.30" ,
7
7
"environment" : " testing" ,
8
8
"debug" : false ,
9
- "locale" : " en" ,
10
- "in console" : true ,
11
- "memory" : " 52.50 MB"
9
+ "in console" : true
12
10
},
13
11
"Chore" : {},
14
12
"Exception Basic" : {
37
35
"49" : " #49 {main}"
38
36
},
39
37
"Request Basic" : {
40
- "path " : " proactive-report-exception" ,
38
+ "url " : " http: \/\/ localhost \/ proactive-report-exception" ,
41
39
"ip" : " 127.0.0.1" ,
42
40
"method" : " POST" ,
43
41
"controller action" : " Closure" ,
44
- "duration" : " 15.69 ms"
42
+ "memory" : " 50.50 MB" ,
43
+ "duration" : " 13.81 ms"
45
44
},
46
45
"Request File" : {
47
46
"file" : {
You can’t perform that action at this time.
0 commit comments