Skip to content

feat(api): add requests headers#311

Merged
gregberge merged 2 commits into
mainfrom
add-request-headers
May 26, 2026
Merged

feat(api): add requests headers#311
gregberge merged 2 commits into
mainfrom
add-request-headers

Conversation

@jsfez
Copy link
Copy Markdown
Contributor

@jsfez jsfez commented May 26, 2026

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
argos-js-sdk-reference Ready Ready Preview, Comment May 26, 2026 6:59pm

Request Review

@gregberge gregberge closed this May 26, 2026
@gregberge gregberge reopened this May 26, 2026
@gregberge gregberge marked this pull request as ready for review May 26, 2026 18:54
Copilot AI review requested due to automatic review settings May 26, 2026 18:54
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances the @argos-ci/api-client fetch wrapper by attaching per-request correlation metadata to every outbound API request (and its retries), improving traceability across retries.

Changes:

  • Add a stable x-argos-request-id header for a request across all retry attempts.
  • Add an x-argos-retry-attempt header that increments on each retry.
  • Add a Vitest test covering header stability and retry-attempt incrementation.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/api-client/src/fetch.ts Generates/propagates a request ID and adds retry-attempt headers on each retry-created Request.
packages/api-client/src/fetch.test.ts Adds a test asserting stable request ID across retries and correct retry-attempt sequencing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/api-client/src/fetch.ts Outdated
@gregberge gregberge merged commit 0bdced9 into main May 26, 2026
23 of 25 checks passed
@gregberge gregberge deleted the add-request-headers branch May 26, 2026 18:58
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