Skip to content
代码片段 群组 项目
提交 a3f8a7a1 编辑于 作者: Stan Hu's avatar Stan Hu 提交者: Bob Van Landuyt
浏览文件

Improve Marginalia comments for API requests

This change adds a `endpoint_id` annotation to the Marginalia comments
to help trace SQL queries to their origin. Examples:

* For Grape API requests, this is the route
  (e.g. `/api/:version/users/:id`).
* For GraphQL requests, this is `GraphqlController#execute`.
* For Rails requests, this is in the controller and action
  (e.g. `Projects::BlobController#show`).

Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/323161
上级 e3ac6c9d
No related branches found
No related tags found
加载中
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册