Skip to content

chore: add User-Agent header and reduce page size for Tailor API#67

Merged
k1LoW merged 1 commit intok1LoW:mainfrom
dragon3:add-user-agent-and-reduce-page-size
Mar 5, 2026
Merged

chore: add User-Agent header and reduce page size for Tailor API#67
k1LoW merged 1 commit intok1LoW:mainfrom
dragon3:add-user-agent-and-reduce-page-size

Conversation

@dragon3
Copy link
Copy Markdown
Contributor

@dragon3 dragon3 commented Mar 5, 2026

Summary

  • Add User-Agent header (tailor-log/<version>) to all Tailor Platform API requests via bearerTokenTransport
  • Reduce maxPageSize for ListFunctionExecutions RPC from 1000 to 100

Motivation

Setting a proper User-Agent header helps with API request tracking and debugging on the server side. Reducing the page size improves reliability of function log fetching.

Changes

  • tailor/tailor.go: Extended bearerTokenTransport with userAgent field, set User-Agent header in RoundTrip
  • tailor/function.go: Changed maxPageSize from 1000 to 100

@dragon3 dragon3 marked this pull request as ready for review March 5, 2026 08:14
Copy link
Copy Markdown
Owner

@k1LoW k1LoW left a comment

Choose a reason for hiding this comment

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

LGTM

@k1LoW k1LoW merged commit 1688f20 into k1LoW:main Mar 5, 2026
2 checks passed
@github-actions github-actions Bot mentioned this pull request Mar 5, 2026
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.

2 participants