Skip to content

fix: exclude GitHub release metadata lookups from origin metrics - #443

Merged
worstell merged 1 commit into
mainfrom
chain/exclude-metadata-origin-metrics
Nov 9, 2026
Merged

worstell merged 1 commit into
mainfrom
chain/exclude-metadata-origin-metrics

Conversation

@worstell

@worstell worstell commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

For private orgs, the github-releases transform gets release metadata from the GitHub API before it downloads the asset. That request used the artifact request context, so cachew.origin.requests counted it as origin traffic. Each private release miss counted as two or more origin exchanges, and API errors counted as origin errors. The README says that GitHub metadata lookups are not counted.

The metadata request now uses metrics.WithoutArtifactRequest. The 429 backoff scope stays on the context, so a rate-limited API call still pauses the strategy. GitHub API calls are still counted in github.api_calls.

The README now also says that OCI registry ping and token exchanges are counted as origin traffic.

🤖 Generated with Claude Code

For private orgs, the github-releases transform gets release metadata
from the GitHub API before it downloads the asset. That request used the
artifact request context, so cachew.origin.requests counted it as origin
traffic. The README says that GitHub metadata lookups are not counted.

The metadata request now uses a context without the artifact request.
The 429 backoff scope stays on the context.

Co-authored-by: Chain <492cad42391b4a5c84d831885f468e6f1699c0a8c39241f1c002235ece37ee69@buzz>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@worstell
worstell marked this pull request as ready for review November 9, 2026 22:44
@worstell
worstell requested a review from a team as a code owner November 9, 2026 22:44
@worstell
worstell requested review from luispadron and removed request for a team November 9, 2026 22:44
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T22:46:48.125455Z 98eb9b3 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@worstell
worstell merged commit 850fbf0 into main Nov 9, 2026
7 checks passed
@worstell
worstell deleted the chain/exclude-metadata-origin-metrics branch November 9, 2026 22:46
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.

1 participant