Skip to content

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

Open
Yilialinn wants to merge 2 commits intoapache:masterfrom
Yilialinn:docs/update-request-id
Open

docs: add gateway logs example to request-id plugin documentation#13168
Yilialinn wants to merge 2 commits intoapache:masterfrom
Yilialinn:docs/update-request-id

Conversation

@Yilialinn
Copy link
Copy Markdown
Contributor

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

Ref: https://github.com/api7/docs/pull/1369

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Documentation things size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants