summaryrefslogtreecommitdiff
path: root/lib/peek
Commit message (Collapse)AuthorAgeFilesLines
* Migrate correlation and tracing code to LabKitan-use-labkitAndrew Newdigate2019-04-181-3/+3
| | | | | | | | | | | | | | | This change is a fairly straightforward refactor to extract the tracing and correlation-id code from the gitlab rails codebase into the new LabKit-Ruby project. The corresponding import into LabKit-Ruby was in https://gitlab.com/gitlab-org/labkit-ruby/merge_requests/1 The code itself remains very similar for now. Extracting it allows us to reuse it in other projects, such as Gitaly-Ruby. This will give us the advantages of correlation-ids and distributed tracing in that project too.
* Provide a performance bar link to the Jaeger UIan-peek-jaegerAndrew Newdigate2019-02-081-0/+13
| | | | | | | | | | Jaeger is a distributed tracing tool. This change adds a "Tracing" link to the performance bar to directly link to a current request in Jaeger. This is useful for two reasons: 1 - it provides affordance to developers that the distributed tracing tool is available, so that it can quickly be discovered. 2 - it allows developers to quickly find a specific trace without having to manually navigate to a second user-interface.
* Fix bug where ID is not setrevert-fd6e3781Zeger-Jan van de Weg2018-11-201-1/+0
| | | | | On HEAD~ we remove the ID from the class, which created a bug. Given we don't need the ID anymore, it has been removed and simplified.
* Merge branch '52421-show-canary-no-canary-in-the-performance-bar' into 'master'Sean McGivern2018-10-151-1/+4
|\ | | | | | | | | | | | | Resolve "Show canary / no-canary in the performance bar" Closes #52421 See merge request gitlab-org/gitlab-ce!22222
| * Show if the host is a canary host in the perf barSean McGivern2018-10-121-1/+4
| | | | | | | | | | | | | | | | If the request came from a canary host, show this in the performance bar by: 1. Adding a bird emoji. 2. Colouring the hostname yellow.
* | Enable even more frozen string in lib/**/*.rbgfyoung2018-10-083-2/+8
|/ | | | | | | | | | | | | | | | | | | | Enables frozen string for the following files: * lib/generators/**/*.rb * lib/gitaly/**/*.rb * lib/google_api/**/*.rb * lib/haml_lint/**/*.rb * lib/json_web_token/**/*.rb * lib/mattermost/**/*.rb * lib/microsoft_teams/**/*.rb * lib/object_storage/**/*.rb * lib/omni_auth/**/*.rb * lib/peek/**/*.rb * lib/rouge/**/*.rb * lib/rspec_flaky/**/*.rb * lib/system_check/**/*.rb Partially addresses #47424.
* Resolve "Performance bar Gitaly modal is hard to read"Annabel Gray2018-06-141-1/+1
|
* Fix UI broken in line profiling modal due to Bootstrap 4Takuya Noguchi2018-05-311-2/+2
|
* Show Ajax requests in performance barSean McGivern2018-03-191-0/+9
| | | | | | | | | | | | | | | | | But first, rewrite the performance bar in Vue: 1. Remove the peek-host gem and replace it with existing code. This also allows us to include the host in the JSON response, rather than in the page HTML. 2. Leave the line profiler parts as here-be-dragons: nicer would be a separate endpoint for these, so we could use them on Ajax requests too. 3. The performance bar is too fiddly to rewrite right now, so apply the same logic to that. Then, add features! All requests made through Axios are able to be tracked. To keep a lid on memory usage, only the first two requests for a given URL are tracked, though. Each request that's tracked has the same data as the initial page load, with the exception of the performance bar and the line profiler, as explained above.
* Capture Gitaly calls that don't go through `migrate`Sean McGivern2018-03-131-3/+4
|
* Add Gitaly call details to the performance barSean McGivern2018-03-131-1/+18
| | | | | The same as the SQL queries, show the details of Gitaly calls in the performance bar, as a modal that can be opened in the same way.
* Add Gitaly data to the Peek performance barZeger-Jan van de Weg2017-10-231-0/+34
|
* Improve & fix the performance bar UI and behaviorRémy Coutable2017-07-061-3/+29
|
* DRYed peek-pg/mysql2 views and update peek-rblineprof monkey-patch file29010-perf-barRémy Coutable2017-06-091-21/+14
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix Rubocop offenses, improve SQL duration format and changelog entryRémy Coutable2017-06-091-9/+21
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix replacement of Pygments with RougeRémy Coutable2017-06-091-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Don't use Pygment,rb, use Rouge instead, and put peek-pg in the :postgres groupRémy Coutable2017-06-091-0/+91
Signed-off-by: Rémy Coutable <remy@rymai.me>