Skip to content

Error Tracking Metrics #913

@ev-shindin

Description

@ev-shindin

Add a counter to track errors by component, replacing the need to parse logs for error rates.

Metrics:

wva_errors_total                    counter {component, error_type}

Implementation:

  • Components: collector, analyzer, optimizer, limiter, enforcer, controller
  • Increment on every logger.Error() call in engine and controller
  • Consider a helper metrics.RecordError(component, errorType string) to keep call sites clean

Acceptance Criteria:

  • Error counter emitted for each component
  • At least one error path per component has metric increment
  • Unit tests verify counter increments on error paths

Metadata

Metadata

Assignees

Labels

needs-triageIndicates an issue or PR lacks a triage label and requires one.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions