Merge pull request #57427 from nextcloud/fix/openmetrics_classes

This commit is contained in:
Benjamin Gaussorgues 2026-01-08 13:45:55 +01:00 committed by GitHub
commit 17aa77e29f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@
namespace OCA\Comments\OpenMetrics;
use Generator;
use OC\DB\Connection;
use OCP\IDBConnection;
use OCP\OpenMetrics\IMetricFamily;
use OCP\OpenMetrics\Metric;
use OCP\OpenMetrics\MetricType;
@ -15,7 +15,7 @@ use Override;
class CommentsCountMetric implements IMetricFamily {
public function __construct(
private Connection $connection,
private IDBConnection $connection,
) {
}

View file

@ -10,11 +10,11 @@ declare(strict_types=1);
namespace OC\OpenMetrics;
use Generator;
use OC\Log\PsrLoggerAdapter;
use OCP\App\IAppManager;
use OCP\IConfig;
use OCP\OpenMetrics\IMetricFamily;
use OCP\Server;
use Psr\Log\LoggerInterface;
class ExporterManager {
private array $skippedClasses;
@ -22,7 +22,7 @@ class ExporterManager {
public function __construct(
private IAppManager $appManager,
private PsrLoggerAdapter $logger,
private LoggerInterface $logger,
IConfig $config,
) {
// Use values as keys for faster lookups