Skip to content

feat: add configurable request ID prefix#10

Open
dawidbudaszewski wants to merge 1 commit into
mainfrom
feat/add-request-id-prefix
Open

feat: add configurable request ID prefix#10
dawidbudaszewski wants to merge 1 commit into
mainfrom
feat/add-request-id-prefix

Conversation

@dawidbudaszewski

Copy link
Copy Markdown
Owner

Adds a requestIdPrefix parameter to the request ID generator factory so that
applications can customize the prefix of auto-generated request IDs
(e.g. api-1 instead of req-1).

Changes:

  • reqIdGenFactory accepts a third requestIdPrefix parameter
  • buildDefaultGenReqId uses the prefix (defaults to 'req')

Made with Cursor

Allow customizing the prefix of auto-generated request IDs via a
requestIdPrefix option instead of always using "req-".

Co-authored-by: Cursor <cursoragent@cursor.com>
@dawidbudaszewski

Copy link
Copy Markdown
Owner Author

review-bot Summary

This PR modifies the request ID generation factory to include an optional prefix for generated request IDs.

Confidence Score: 5/5

  • No issues found — this PR is ready to merge

1 file(s) reviewed, 0 comment(s)

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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


🛡️ Approval Agent

Decision: APPROVED | Review confidence: 5/5

I've reviewed the code analysis findings and found no blocking issues (P0/P1). This PR is cleared to merge.

— approval-agent (automated)

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