-
fix(reports): dimension daily-report metrics and count manual triggers
发布于
2026-07-22 16:24:41 +00:00 Address PR review on the daily-report metrics (metrics-instrumentation
contract):- Dimension triggered, trigger_error, finished, both duration
histograms, and stale_swept by workspace_id + workspace_name (paired,
name->id fallback); trigger_error also carries error_type. - Emit the triggered counter from createAndTriggerReport so manual
/generate triggers are counted alongside scheduled ones, keeping the
funnel consistent with finished/stale_swept (which already count both). - Per-workspace stale_swept: failStaleReports returns per-workspace
counts; the 30-minute cutoff is a single STALE_THRESHOLD_MINUTES
constant bound into both stale queries. - Hoist result/workspace AttributeKeys to constants; add
workspaceId/projectId to markReportFailed logs; drop the duplicate
job-side stale-sweep INFO log.
下载附件
- Dimension triggered, trigger_error, finished, both duration