Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
25 | public function collect(): Observable |
||
26 | 2 | { |
|
27 | 2 | return observableFromArray([ |
|
28 | 2 | Metric::create( |
|
29 | new Config( |
||
30 | 2 | 'reactphp_inspector', |
|
31 | 'counter', |
||
32 | '' |
||
33 | 2 | ), |
|
34 | 2 | new Tags( |
|
35 | new Tag('reactphp_inspector_internal', 'true'), |
||
36 | ), |
||
37 | new Measurements( |
||
38 | new Measurement(0.0, new Tags(new Tag('measurement', 'metrics'))), |
||
39 | new Measurement((hrtime(true) * 1e-9) - $this->startTime, new Tags(new Tag('measurement', 'uptime'))), |
||
40 | 1 | ) |
|
49 |