From 2389d03ff5a3acbe62f08f7a5b2f1b0566568e74 Mon Sep 17 00:00:00 2001 From: Christoph Jerolimov Date: Tue, 21 Apr 2026 01:57:08 +0200 Subject: [PATCH] chore(scorecard): log metric provider errors Signed-off-by: Christoph Jerolimov --- .../src/scheduler/tasks/PullMetricsByProviderTask.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/workspaces/scorecard/plugins/scorecard-backend/src/scheduler/tasks/PullMetricsByProviderTask.ts b/workspaces/scorecard/plugins/scorecard-backend/src/scheduler/tasks/PullMetricsByProviderTask.ts index 7ad8bdb3207..97779549507 100644 --- a/workspaces/scorecard/plugins/scorecard-backend/src/scheduler/tasks/PullMetricsByProviderTask.ts +++ b/workspaces/scorecard/plugins/scorecard-backend/src/scheduler/tasks/PullMetricsByProviderTask.ts @@ -181,6 +181,12 @@ export class PullMetricsByProviderTask implements SchedulerTask { } catch (error) { // status is intentionally omitted — a calculation failure produces a NULL status // in the database, which sorts last when sortBy=status is used + logger.warn( + `Failed to calculate metric for entity ${stringifyEntityRef( + entity, + )}: ${error}`, + error instanceof Error ? error : undefined, + ); return { catalog_entity_ref: stringifyEntityRef(entity), metric_id: this.providerId,