diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-01-12 17:41:22 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-01-12 17:41:22 +0300 |
commit | 355c341fe7c6b7c503386cf0b0e39cc02dbc8902 (patch) | |
tree | efb68612b2dd9858b0ae311d63e56bd075bafa74 /lib/gitlab/metrics | |
parent | 587f850170a38e2642c0de76fb69efdeae930d66 (diff) |
Stop tracking call stacks for instrumented views
Where a vew is called from doesn't matter as much. We already know what
action they belong to and this is more than enough information. By
removing the file/line number from the list of tags we should also be
able to reduce the number of series stored in InfluxDB.
Diffstat (limited to 'lib/gitlab/metrics')
-rw-r--r-- | lib/gitlab/metrics/subscribers/action_view.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/gitlab/metrics/subscribers/action_view.rb b/lib/gitlab/metrics/subscribers/action_view.rb index 7c0105d543a..2e9dd4645e3 100644 --- a/lib/gitlab/metrics/subscribers/action_view.rb +++ b/lib/gitlab/metrics/subscribers/action_view.rb @@ -33,16 +33,8 @@ module Gitlab def tags_for(event) path = relative_path(event.payload[:identifier]) - tags = { view: path } - file, line = Metrics.last_relative_application_frame - - if file and line - tags[:file] = file - tags[:line] = line - end - - tags + { view: path } end def current_transaction |