1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
|
{
"context": {},
"data": {
"host": {
"hostname": "pc",
"canary": null
},
"active-record": {
"duration": "6ms",
"calls": "7 (0 cached)",
"details": [
{
"duration": 1.096,
"sql": "SELECT COUNT(*) FROM ((SELECT \"badges\".* FROM \"badges\" WHERE \"badges\".\"type\" = 'ProjectBadge' AND \"badges\".\"project_id\" = 8)\nUNION\n(SELECT \"badges\".* FROM \"badges\" WHERE \"badges\".\"type\" = 'GroupBadge' AND \"badges\".\"group_id\" IN (SELECT \"namespaces\".\"id\" FROM \"namespaces\" WHERE \"namespaces\".\"type\" = 'Group' AND \"namespaces\".\"id\" = 28))) badges",
"backtrace": [
"ee/lib/ee/peek/views/active_record.rb:11:in `generate_detail'",
"lib/peek/views/active_record.rb:42:in `block in setup_subscribers'",
"lib/gitlab/pagination/offset_pagination.rb:53:in `add_pagination_headers'",
"lib/gitlab/pagination/offset_pagination.rb:15:in `block in paginate'",
"lib/gitlab/pagination/offset_pagination.rb:14:in `tap'",
"lib/gitlab/pagination/offset_pagination.rb:14:in `paginate'",
"lib/api/helpers/pagination.rb:7:in `paginate'",
"lib/api/badges.rb:42:in `block (3 levels) in <class:Badges>'",
"ee/lib/gitlab/ip_address_state.rb:10:in `with'",
"lib/api/api_guard.rb:208:in `call'",
"lib/gitlab/jira/middleware.rb:19:in `call'"
],
"cached": "",
"warnings": []
},
{
"duration": 0.817,
"sql": "SELECT \"projects\".* FROM \"projects\" WHERE \"projects\".\"pending_delete\" = $1 AND \"projects\".\"id\" = $2 LIMIT $3",
"backtrace": [
"lib/api/helpers.rb:112:in `find_project'",
"ee/lib/ee/api/helpers.rb:88:in `find_project!'",
"lib/api/helpers/members_helpers.rb:14:in `public_send'",
"lib/api/helpers/members_helpers.rb:14:in `find_source'",
"lib/api/badges.rb:36:in `block (3 levels) in <class:Badges>'",
"ee/lib/gitlab/ip_address_state.rb:10:in `with'",
"lib/api/api_guard.rb:208:in `call'",
"lib/gitlab/jira/middleware.rb:19:in `call'"
],
"cached": "",
"warnings": []
},
{
"duration": 0.817,
"sql": "SELECT \"projects\".* FROM \"projects\" WHERE \"projects\".\"pending_delete\" = $1 AND \"projects\".\"id\" = $2 LIMIT $3",
"backtrace": [
"lib/api/helpers.rb:112:in `find_project'",
"ee/lib/ee/api/helpers.rb:88:in `find_project!'",
"lib/api/helpers/members_helpers.rb:14:in `public_send'",
"lib/api/helpers/members_helpers.rb:14:in `find_source'",
"lib/api/badges.rb:36:in `block (3 levels) in <class:Badges>'",
"ee/lib/gitlab/ip_address_state.rb:10:in `with'",
"lib/api/api_guard.rb:208:in `call'",
"lib/gitlab/jira/middleware.rb:19:in `call'"
],
"cached": "",
"warnings": []
}
],
"warnings": []
},
"gitaly": {
"duration": "30ms",
"calls": 2,
"details": [
{
"start": 6301.575665897,
"feature": "commit_service#get_tree_entries",
"duration": 23.709,
"request": "{:repository=>\n {:storage_name=>\"nfs-file-cny01\",\n :relative_path=>\n \"@hashed/a6/80/a68072e80f075e89bc74a300101a9e71e8363bdb542182580162553462480a52.git\",\n :git_object_directory=>\"\",\n :git_alternate_object_directories=>[],\n :gl_repository=>\"project-278964\",\n :gl_project_path=>\"gitlab-org/gitlab\"},\n :revision=>\"master\",\n :path=>\".\",\n :sort=>:TREES_FIRST,\n :pagination_params=>{:page_token=>\"\", :limit=>100}}\n",
"rpc": "get_tree_entries",
"backtrace": [
"lib/gitlab/gitaly_client/call.rb:48:in `block in instrument_stream'",
"lib/gitlab/gitaly_client/commit_service.rb:128:in `each'",
"lib/gitlab/gitaly_client/commit_service.rb:128:in `each'",
"lib/gitlab/gitaly_client/commit_service.rb:128:in `flat_map'",
"lib/gitlab/gitaly_client/commit_service.rb:128:in `tree_entries'",
"lib/gitlab/git/tree.rb:26:in `block in tree_entries'",
"lib/gitlab/git/wraps_gitaly_errors.rb:7:in `wrapped_gitaly_errors'",
"lib/gitlab/git/tree.rb:25:in `tree_entries'",
"lib/gitlab/git/rugged_impl/tree.rb:29:in `tree_entries'",
"lib/gitlab/git/tree.rb:21:in `where'",
"app/models/tree.rb:17:in `initialize'",
"app/models/repository.rb:681:in `new'",
"app/models/repository.rb:681:in `tree'",
"app/graphql/resolvers/paginated_tree_resolver.rb:35:in `resolve'",
"lib/gitlab/graphql/present/field_extension.rb:18:in `resolve'",
"lib/gitlab/graphql/extensions/externally_paginated_array_extension.rb:7:in `resolve'",
"lib/gitlab/graphql/generic_tracing.rb:40:in `with_labkit_tracing'",
"lib/gitlab/graphql/generic_tracing.rb:30:in `platform_trace'",
"lib/gitlab/graphql/generic_tracing.rb:40:in `with_labkit_tracing'",
"lib/gitlab/graphql/generic_tracing.rb:30:in `platform_trace'",
"lib/gitlab/graphql/generic_tracing.rb:40:in `with_labkit_tracing'",
"lib/gitlab/graphql/generic_tracing.rb:30:in `platform_trace'",
"app/graphql/gitlab_schema.rb:40:in `multiplex'",
"app/controllers/graphql_controller.rb:110:in `execute_multiplex'",
"app/controllers/graphql_controller.rb:41:in `execute'",
"ee/lib/gitlab/ip_address_state.rb:10:in `with'",
"ee/app/controllers/ee/application_controller.rb:44:in `set_current_ip_address'",
"app/controllers/application_controller.rb:497:in `set_current_admin'",
"lib/gitlab/session.rb:11:in `with_session'",
"app/controllers/application_controller.rb:488:in `set_session_storage'",
"app/controllers/application_controller.rb:482:in `set_locale'",
"app/controllers/application_controller.rb:476:in `set_current_context'",
"ee/lib/omni_auth/strategies/group_saml.rb:41:in `other_phase'",
"lib/gitlab/jira/middleware.rb:19:in `call'"
],
"warnings": []
}, {
"start": 9081.502219885,
"feature": "commit_service#find_commit",
"duration": 6.678,
"request": "{:repository=>\n {:storage_name=>\"nfs-file-cny01\",\n :relative_path=>\n \"@hashed/a6/80/a68072e80f075e89bc74a300101a9e71e8363bdb542182580162553462480a52.git\",\n :git_object_directory=>\"\",\n :git_alternate_object_directories=>[],\n :gl_repository=>\"project-278964\",\n :gl_project_path=>\"gitlab-org/gitlab\"},\n :revision=>\"master\"}\n",
"rpc": "find_commit",
"backtrace": [
"lib/gitlab/gitaly_client/call.rb:30:in `call'",
"lib/gitlab/gitaly_client.rb:167:in `call'",
"lib/gitlab/gitaly_client/commit_service.rb:520:in `call_find_commit'",
"lib/gitlab/gitaly_client/commit_service.rb:354:in `find_commit'",
"lib/gitlab/git/commit.rb:74:in `block in find_commit'",
"lib/gitlab/git/wraps_gitaly_errors.rb:7:in `wrapped_gitaly_errors'",
"lib/gitlab/git/commit.rb:73:in `find_commit'",
"lib/gitlab/git/rugged_impl/commit.rb:41:in `find_commit'",
"lib/gitlab/git/commit.rb:65:in `find'",
"lib/gitlab/git/repository.rb:789:in `commit'",
"app/services/branches/diverging_commit_counts_service.rb:21:in `diverging_commit_counts'",
"app/services/branches/diverging_commit_counts_service.rb:11:in `call'",
"app/controllers/projects/branches_controller.rb:57:in `block (4 levels) in diverging_commit_counts'",
"app/controllers/projects/branches_controller.rb:57:in `to_h'",
"app/controllers/projects/branches_controller.rb:57:in `block (3 levels) in diverging_commit_counts'",
"lib/gitlab/gitaly_client.rb:325:in `allow_n_plus_1_calls'",
"app/controllers/projects/branches_controller.rb:56:in `block (2 levels) in diverging_commit_counts'",
"app/controllers/projects/branches_controller.rb:51:in `diverging_commit_counts'",
"ee/lib/gitlab/ip_address_state.rb:10:in `with'",
"ee/app/controllers/ee/application_controller.rb:44:in `set_current_ip_address'",
"app/controllers/application_controller.rb:497:in `set_current_admin'",
"lib/gitlab/session.rb:11:in `with_session'",
"app/controllers/application_controller.rb:488:in `set_session_storage'",
"app/controllers/application_controller.rb:482:in `set_locale'",
"app/controllers/application_controller.rb:476:in `set_current_context'",
"ee/lib/omni_auth/strategies/group_saml.rb:41:in `other_phase'",
"lib/gitlab/jira/middleware.rb:19:in `call'"
],
"warnings": []
}
],
"warnings": []
},
"redis": {
"duration": "0ms",
"calls": 1,
"details": [
{
"cmd": "get cache:gitlab:flipper/v1/feature/api_kaminari_count_with_limit",
"duration": 0.155,
"backtrace": [
"lib/gitlab/instrumentation/redis_interceptor.rb:30:in `call'",
"lib/feature.rb:81:in `enabled?'",
"lib/gitlab/pagination/offset_pagination.rb:30:in `paginate_with_limit_optimization'",
"lib/gitlab/pagination/offset_pagination.rb:14:in `paginate'",
"lib/api/helpers/pagination.rb:7:in `paginate'",
"lib/api/badges.rb:42:in `block (3 levels) in <class:Badges>'",
"ee/lib/gitlab/ip_address_state.rb:10:in `with'",
"lib/api/api_guard.rb:208:in `call'",
"lib/gitlab/jira/middleware.rb:19:in `call'"
],
"storage": "Cache",
"warnings": [],
"instance": "Cache"
}
],
"warnings": []
},
"es": {
"duration": "0ms",
"calls": 0,
"details": [],
"warnings": []
}
},
"has_warnings": false
}
|