Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update: pr#1024 #25

Merged
merged 1 commit into from
Jul 19, 2018
Merged

Update: pr#1024 #25

merged 1 commit into from
Jul 19, 2018

Conversation

fralonra
Copy link
Member

No description provided.

@fralonra fralonra requested a review from vincent178 July 19, 2018 13:36
@fralonra fralonra mentioned this pull request Jul 19, 2018
21 tasks
@@ -40,7 +40,8 @@ fastify.get('/', options, function (request, reply) {
})
```

默认情况下,Fastify 给每个请求分配了一个 id 以便跟踪。如果头部存在 "request-id" 即使用该值,否则会生成一个新的增量 id。
<a name="logging-request-id" />
默认情况下,Fastify 给每个请求分配了一个 id 以便跟踪。如果头部存在 "request-id" 即使用该值,否则会生成一个新的增量 id。你可以通过 Fastify 工厂函数的 [`requestIdHeader`](./Factory.md#factory-request-id-header) 选项来自定义该头部的名称。
Copy link
Member

Choose a reason for hiding this comment

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

文档之间还可以这样引用,学到了

@vincent178 vincent178 merged commit 04a85ca into fastify:master Jul 19, 2018
@fralonra fralonra deleted the pr#1024 branch August 27, 2018 12:56
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.

None yet

2 participants