Remove requirement for personal access token in profiling

Since https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23320,
personal access tokens are no longer needed for profiling an endpoint
since users are stubbed directly.
This commit is contained in:
Stan Hu 2019-06-23 23:48:52 -07:00
parent 97e8f49442
commit 22cfb8588c
1 changed files with 0 additions and 4 deletions

View File

@ -38,10 +38,6 @@ For routes that require authorization you will need to provide a user to
Gitlab::Profiler.profile('/gitlab-org/gitlab-test', user: User.first)
```
The user you provide will need to have a [personal access
token](https://docs.gitlab.com/ce/user/profile/personal_access_tokens.html) in
the GitLab instance.
Passing a `logger:` keyword argument to `Gitlab::Profiler.profile` will send
ActiveRecord and ActionController log output to that logger. Further options are
documented with the method source.