Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
05702880
Commit
05702880
authored
Sep 23, 2021
by
Bob Van Landuyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use request_apdex accessor method
Instead of repeating the SLI name.
parent
3fe9aeee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lib/gitlab/metrics/requests_rack_middleware.rb
lib/gitlab/metrics/requests_rack_middleware.rb
+1
-1
No files found.
lib/gitlab/metrics/requests_rack_middleware.rb
View file @
05702880
...
@@ -116,7 +116,7 @@ module Gitlab
...
@@ -116,7 +116,7 @@ module Gitlab
def
record_apdex_if_needed
(
elapsed
)
def
record_apdex_if_needed
(
elapsed
)
return
unless
Gitlab
::
Metrics
::
RailsSlis
.
request_apdex_counters_enabled?
return
unless
Gitlab
::
Metrics
::
RailsSlis
.
request_apdex_counters_enabled?
Gitlab
::
Metrics
::
Sli
[
:rails_request_apdex
]
.
increment
(
Gitlab
::
Metrics
::
RailsSlis
.
request_apdex
.
increment
(
labels:
labels_from_context
,
labels:
labels_from_context
,
# hardcoded 1s here will be replaced by a per-endpoint value.
# hardcoded 1s here will be replaced by a per-endpoint value.
# https://gitlab.com/gitlab-com/gl-infra/scalability/-/issues/1223
# https://gitlab.com/gitlab-com/gl-infra/scalability/-/issues/1223
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment