chore(scorecard): log metric provider errors#2844
Conversation
Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com>
Code Review by Qodo
1. Unsafe error interpolation
|
Missing ChangesetsThe following package(s) are changed by this PR but do not have a changeset:
See CONTRIBUTING.md for more information about how to add changesets. Changed Packages
|
|
Review Summary by QodoLog metric provider errors with entity context
WalkthroughsDescription• Add warning logs when metric provider fails for entity • Include error details and entity reference in log message • Improve observability of metric calculation failures Diagramflowchart LR
A["Metric Calculation"] -->|"Error Occurs"| B["Log Warning"]
B -->|"Include Entity Ref"| C["Error Details Logged"]
C -->|"Continue Processing"| D["Return NULL Status"]
File Changes1. workspaces/scorecard/plugins/scorecard-backend/src/scheduler/tasks/PullMetricsByProviderTask.ts
|
dzemanov
left a comment
There was a problem hiding this comment.
@christoph-jerolimov can you add changeset?



Hey, I just made a Pull Request!
Logs a warning when a metric provider fails for an entity. Wdyt? :)
✔️ Checklist