Skip to content

Add granular metrics for cloud requirements load#14108

Merged
alexsong-oai merged 6 commits intomainfrom
alexs/cloud-metrics
Mar 10, 2026
Merged

Add granular metrics for cloud requirements load#14108
alexsong-oai merged 6 commits intomainfrom
alexs/cloud-metrics

Conversation

@alexsong-oai
Copy link
Collaborator

No description provided.

@alexsong-oai alexsong-oai marked this pull request as ready for review March 10, 2026 06:52
@alexsong-oai
Copy link
Collaborator Author

@codex review

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5793271d83

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

CLOUD_REQUIREMENTS_AUTH_RECOVERY_FAILED_MESSAGE,
));
};
auth = refreshed_auth;
Copy link
Contributor

Choose a reason for hiding this comment

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

P2 Badge Increment attempt after auth refresh before retrying fetch

After a 401, the auth-recovery success path reuses the same attempt value and immediately continues. This emits duplicate fetch_attempt metrics with the same attempt tag and records fetch_final.attempt_count as 1 even when two backend requests were made. The new granular metrics undercount real retry behavior.

Useful? React with 👍 / 👎.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is fine

Copy link
Collaborator

Choose a reason for hiding this comment

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

so you will see a failed follow by a succeeded? Can we have a metric based on the final result?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We have CLOUD_REQUIREMENTS_FETCH_FINAL_METRIC which is the final result. This comment is for this per attempt metric: CLOUD_REQUIREMENTS_FETCH_ATTEMPT_METRIC

@alexsong-oai alexsong-oai merged commit 22d0aea into main Mar 10, 2026
31 checks passed
@alexsong-oai alexsong-oai deleted the alexs/cloud-metrics branch March 10, 2026 20:44
@github-actions github-actions bot locked and limited conversation to collaborators Mar 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants