oneapm_rpm 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/one_apm/agent/database/active_record_helper.rb +4 -4
- data/lib/one_apm/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e32427fd3917392d098a61043e2e8ba109be38f
|
4
|
+
data.tar.gz: 146849355bbd8791205fafccca1cd14a42d93eaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75c0d8b2b385925693074ea3c369cf2ec062a7708369f704c8890d7f1d1c549502848bddbb5d8f8ba0503a19056d974baf74427c64e15a436b237876df3bdaab
|
7
|
+
data.tar.gz: 1e84cb7ff83b77382c7b854b87473dc426a1baff93ccc9c1612d7febbd96aeefa0ab59090160d6090fd90e6fbbce29b0b78a06d28b5661cc27242adf5c203f43
|
@@ -46,11 +46,11 @@ module OneApm
|
|
46
46
|
|
47
47
|
# Given a metric name such as "ActiveRecord/model/action" this
|
48
48
|
# returns an array of rollup metrics:
|
49
|
-
# [ "
|
49
|
+
# [ "Database/all", "ActiveRecord/all", "ActiveRecord/action" ]
|
50
50
|
# If the metric name is in the form of "ActiveRecord/action"
|
51
|
-
# this returns merely: [ "
|
51
|
+
# this returns merely: [ "Database/all", "ActiveRecord/all" ]
|
52
52
|
def rollup_metrics_for(metric)
|
53
|
-
metrics = ["
|
53
|
+
metrics = ["Database/all"]
|
54
54
|
|
55
55
|
# If we're outside of a web transaction, don't record any rollup
|
56
56
|
# database metrics. This is to prevent metrics from background tasks
|
@@ -58,7 +58,7 @@ module OneApm
|
|
58
58
|
if OneApm::Transaction.recording_web_transaction?
|
59
59
|
metrics << "ActiveRecord/all"
|
60
60
|
else
|
61
|
-
metrics << "
|
61
|
+
metrics << "Database/allOther"
|
62
62
|
end
|
63
63
|
metrics << "ActiveRecord/#{$1}" if metric =~ /ActiveRecord\/[\w|\:]+\/(\w+)/
|
64
64
|
|
data/lib/one_apm/version.rb
CHANGED