Skip to content

Commit

Permalink
Remove completed todo.
Browse files Browse the repository at this point in the history
Signed-off-by: Arris Ray <[email protected]>
  • Loading branch information
arris-ray committed Jan 23, 2023
1 parent 45f0e8f commit 4aa0fc0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 29 deletions.
1 change: 0 additions & 1 deletion src/Prometheus/Storage/RedisTxn.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
* This adapter refactors the {@see \Prometheus\Storage\RedisNg} adapter to generally try and execute the "update" and
* "collect" operations of each metric type within a single Redis transaction.
*
* @todo Only summary metrics have been refactored so far. Complete refactor for counter, gauge, and histogram metrics.
* @todo Reimplement wipeStorage() to account for reorganized keys in Redis.
* @todo Reimplement all Redis scripts with redis.pcall() to trap runtime errors that are ignored by redis.call().
*/
Expand Down
56 changes: 28 additions & 28 deletions tests/Test/Benchmark/BenchmarkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,34 +32,34 @@ public static function setUpBeforeClass(): void
public function benchmarkProvider(): array
{
return [
// [AdapterType::REDISNG, MetricType::COUNTER, 1000, 10],
// [AdapterType::REDISNG, MetricType::COUNTER, 2000, 10],
// [AdapterType::REDISNG, MetricType::COUNTER, 5000, 10],
// [AdapterType::REDISNG, MetricType::COUNTER, 10000, 10],
// [AdapterType::REDISNG, MetricType::GAUGE, 1000, 10],
// [AdapterType::REDISNG, MetricType::GAUGE, 2000, 10],
// [AdapterType::REDISNG, MetricType::GAUGE, 5000, 10],
// [AdapterType::REDISNG, MetricType::GAUGE, 10000, 10],
// [AdapterType::REDISNG, MetricType::HISTOGRAM, 1000, 10],
// [AdapterType::REDISNG, MetricType::HISTOGRAM, 2000, 10],
// [AdapterType::REDISNG, MetricType::HISTOGRAM, 5000, 10],
// [AdapterType::REDISNG, MetricType::HISTOGRAM, 10000, 10],
// [AdapterType::REDISNG, MetricType::SUMMARY, 1000, 10],
// [AdapterType::REDISNG, MetricType::SUMMARY, 2000, 10],
// [AdapterType::REDISNG, MetricType::SUMMARY, 5000, 10],
// [AdapterType::REDISNG, MetricType::SUMMARY, 10000, 10],
// [AdapterType::REDISTXN, MetricType::COUNTER, 1000, 10],
// [AdapterType::REDISTXN, MetricType::COUNTER, 2000, 10],
// [AdapterType::REDISTXN, MetricType::COUNTER, 5000, 10],
// [AdapterType::REDISTXN, MetricType::COUNTER, 10000, 10],
// [AdapterType::REDISTXN, MetricType::GAUGE, 1000, 10],
// [AdapterType::REDISTXN, MetricType::GAUGE, 2000, 10],
// [AdapterType::REDISTXN, MetricType::GAUGE, 5000, 10],
// [AdapterType::REDISTXN, MetricType::GAUGE, 10000, 10],
// [AdapterType::REDISTXN, MetricType::HISTOGRAM, 1000, 10],
// [AdapterType::REDISTXN, MetricType::HISTOGRAM, 2000, 10],
// [AdapterType::REDISTXN, MetricType::HISTOGRAM, 5000, 10],
// [AdapterType::REDISTXN, MetricType::HISTOGRAM, 10000, 10],
[AdapterType::REDISNG, MetricType::COUNTER, 1000, 10],
[AdapterType::REDISNG, MetricType::COUNTER, 2000, 10],
[AdapterType::REDISNG, MetricType::COUNTER, 5000, 10],
[AdapterType::REDISNG, MetricType::COUNTER, 10000, 10],
[AdapterType::REDISNG, MetricType::GAUGE, 1000, 10],
[AdapterType::REDISNG, MetricType::GAUGE, 2000, 10],
[AdapterType::REDISNG, MetricType::GAUGE, 5000, 10],
[AdapterType::REDISNG, MetricType::GAUGE, 10000, 10],
[AdapterType::REDISNG, MetricType::HISTOGRAM, 1000, 10],
[AdapterType::REDISNG, MetricType::HISTOGRAM, 2000, 10],
[AdapterType::REDISNG, MetricType::HISTOGRAM, 5000, 10],
[AdapterType::REDISNG, MetricType::HISTOGRAM, 10000, 10],
[AdapterType::REDISNG, MetricType::SUMMARY, 1000, 10],
[AdapterType::REDISNG, MetricType::SUMMARY, 2000, 10],
[AdapterType::REDISNG, MetricType::SUMMARY, 5000, 10],
[AdapterType::REDISNG, MetricType::SUMMARY, 10000, 10],
[AdapterType::REDISTXN, MetricType::COUNTER, 1000, 10],
[AdapterType::REDISTXN, MetricType::COUNTER, 2000, 10],
[AdapterType::REDISTXN, MetricType::COUNTER, 5000, 10],
[AdapterType::REDISTXN, MetricType::COUNTER, 10000, 10],
[AdapterType::REDISTXN, MetricType::GAUGE, 1000, 10],
[AdapterType::REDISTXN, MetricType::GAUGE, 2000, 10],
[AdapterType::REDISTXN, MetricType::GAUGE, 5000, 10],
[AdapterType::REDISTXN, MetricType::GAUGE, 10000, 10],
[AdapterType::REDISTXN, MetricType::HISTOGRAM, 1000, 10],
[AdapterType::REDISTXN, MetricType::HISTOGRAM, 2000, 10],
[AdapterType::REDISTXN, MetricType::HISTOGRAM, 5000, 10],
[AdapterType::REDISTXN, MetricType::HISTOGRAM, 10000, 10],
[AdapterType::REDISTXN, MetricType::SUMMARY, 1000, 10],
[AdapterType::REDISTXN, MetricType::SUMMARY, 2000, 10],
[AdapterType::REDISTXN, MetricType::SUMMARY, 5000, 10],
Expand Down

0 comments on commit 4aa0fc0

Please sign in to comment.