simple_apm 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/simple_apm/version.rb +1 -1
- data/lib/simple_apm.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f72ecf67b90dc375964fe554ae3b088f00197a0a93d8d18538804a9d74c78361
|
4
|
+
data.tar.gz: 9f0aa6b00d6431beba25056654314c884b83203af85523b6186f223ec28778b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22505327543b32bc01d3475e9ccaaef8052fcaa09b3b67c0151b336bd0d7532a1985b857c8cd3a44d685cfdc0a1c3835d65d33a9ef87914fcea41b6ce162c55d
|
7
|
+
data.tar.gz: 6210204216314aee3c857935bb1c648066871aa7ae246fff7c96853544e001b26a4395857b44a4db69eae23c60d80dde35e8dcdc472cd0d7aaad53aa227846c5
|
data/lib/simple_apm/version.rb
CHANGED
data/lib/simple_apm.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require "simple_apm/setting"
|
2
2
|
require "simple_apm/redis"
|
3
3
|
require "simple_apm/engine"
|
4
|
-
|
4
|
+
require 'callsite'
|
5
5
|
module SimpleApm
|
6
6
|
ActiveSupport::Notifications.subscribe('process_action.action_controller') do |name, started, finished, unique_id, payload|
|
7
7
|
request_id = Thread.current['action_dispatch.request_id']
|
@@ -42,7 +42,7 @@ module SimpleApm
|
|
42
42
|
if request_id.present?
|
43
43
|
dev_caller = caller.detect { |c| c.include? Rails.root.to_s }
|
44
44
|
if dev_caller
|
45
|
-
c = Callsite.parse(dev_caller)
|
45
|
+
c = ::Callsite.parse(dev_caller)
|
46
46
|
payload.merge!(:line => c.line, :filename => c.filename.to_s.gsub(Rails.root.to_s,''), :method => c.method)
|
47
47
|
end
|
48
48
|
# ActiveRecord::Relation::QueryAttribute
|