Skip to content

docs: add gateway logs example to request-id plugin documentation#13168

Merged
Yilialinn merged 5 commits into
apache:masterfrom
Yilialinn:docs/update-request-id
Apr 17, 2026
Merged

docs: add gateway logs example to request-id plugin documentation#13168
Yilialinn merged 5 commits into
apache:masterfrom
Yilialinn:docs/update-request-id

Conversation

@Yilialinn
Copy link
Copy Markdown
Contributor

@Yilialinn Yilialinn commented Apr 7, 2026

Summary

  • Add new "Understand Request ID in Gateway Logs" section to both EN and ZH docs, explaining the difference between Nginx built-in $request_id (when plugin is disabled) and plugin-generated UUID (when plugin is enabled), available from APISIX 3.15.0
  • Update plugin description to match upstream API7 docs wording
  • Add canonical link to ZH doc (EN already had one)
  • Replace hardcoded ADMIN_API_KEY with admin_key variable in all curl commands

Add new 'Understand Request ID in Gateway Logs' section explaining the
difference between Nginx built-in $request_id (plugin disabled) and
plugin-generated UUID (plugin enabled), available from APISIX 3.15.0.

Also update description to match upstream API7 docs, add canonical link
to ZH doc, and replace ADMIN_API_KEY with admin_key variable.

Ref: api7/docs#1369
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. doc Documentation things labels Apr 7, 2026
@Yilialinn Yilialinn requested a review from Copilot April 9, 2026 07:37
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

Note

Copilot was unable to run its full agentic suite in this review.

Updates the request-id plugin documentation to clarify how request IDs appear in gateway logs (plugin-enabled vs disabled), align wording with upstream docs, and standardize Admin API key usage in examples.

Changes:

  • Added a new section explaining request ID behavior in access/error logs (APISIX ≥ 3.15.0), with curl + log examples.
  • Updated plugin description wording and standardized curl examples to use ${admin_key}.
  • Added a canonical link tag to the ZH doc.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
docs/zh/latest/plugins/request-id.md Adds canonical link, expands description, adds “gateway logs request ID” section, and updates curl examples to use ${admin_key}.
docs/en/latest/plugins/request-id.md Expands description, adds “gateway logs request ID” section, and updates curl examples to use ${admin_key}.

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

Comment thread docs/zh/latest/plugins/request-id.md
Comment thread docs/zh/latest/plugins/request-id.md
Comment thread docs/zh/latest/plugins/request-id.md
Comment thread docs/zh/latest/plugins/request-id.md
Comment thread docs/en/latest/plugins/request-id.md Outdated
@Yilialinn Yilialinn force-pushed the docs/update-request-id branch from b2da017 to b8f4e70 Compare April 13, 2026 02:07
@dosubot dosubot Bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Apr 13, 2026
…quest-Id

The nanoid example does not configure a custom header_name, so the
default X-Request-Id should be referenced in the prose text.
@Yilialinn Yilialinn requested a review from kayx23 April 16, 2026 03:37
@Yilialinn Yilialinn merged commit 67d1971 into apache:master Apr 17, 2026
7 checks passed
@Yilialinn Yilialinn deleted the docs/update-request-id branch April 17, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Documentation things size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants