Skip to content

Add more granular metrics on failed requests#98

Merged
yushan8 merged 7 commits into
mainfrom
add-granular-metrics
Jun 3, 2026
Merged

Add more granular metrics on failed requests#98
yushan8 merged 7 commits into
mainfrom
add-granular-metrics

Conversation

@yushan8
Copy link
Copy Markdown
Contributor

@yushan8 yushan8 commented Jun 2, 2026

Add more granular metrics for different failure categories.

@yushan8 yushan8 requested review from a team as code owners June 2, 2026 19:18
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jun 2, 2026

CLA assistant check
All committers have signed the CLA.

Comment thread controller/getchangedtargets.go Outdated
Comment thread controller/getchangedtargets.go Outdated
Comment thread controller/getchangedtargets.go Outdated
if err != nil {
logger.Error("GetChangedTargets: Failed to compare target graphs", zap.Error(err))
failureReason = "compare"
return fmt.Errorf("failed to compare target graphs: %w", err)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we define custom error types in errors.go, so that in classifyError it can just match the error type instead of looking for strings. I believe that's the best practice for our internal services. Then maybe all the classification can happen inside classifyError instead of doing some in there and some like this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes good point. Created an interface for ClassifyError. That way we can categorize failures internally.

Comment thread orchestrator/native_orchestrator.go Outdated
@yushan8 yushan8 merged commit 47f0e52 into main Jun 3, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants