grape-appsignal 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7136d04699d93c961004b7ad5471ae7fb4b24313
|
4
|
+
data.tar.gz: 49a911215e0643c5d45a5574db2d02ff5e682b43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dfd6d09b56cdb7601d92d180e6233ff19f7f7c7f179b16be159bcf406ea0c52859601c5348452662ed76d3c88e363d4edfc83d82b9c3e254d63efdc17cd5f4f
|
7
|
+
data.tar.gz: 9febdfd2143b747dc731e7134fa4f369776bc2b8c9e8742b48fee34e9f6a130cf19cc02d98f453d76a9bcf47d16fddb92a66e608ac8e4693c67358442e586222
|
@@ -12,7 +12,8 @@ module Appsignal
|
|
12
12
|
req = ::Rack::Request.new(env)
|
13
13
|
request_path = env['api.endpoint'].routes.first.route_path[1..-1].gsub(/\(\.:format\)\z/, "")
|
14
14
|
metric_name = "process_action.grape"
|
15
|
-
|
15
|
+
action = "#{req.request_method}::#{request_path}"
|
16
|
+
ActiveSupport::Notifications.instrument(metric_name, { method: req.request_method, path: request_path, action: action } ) do |payload|
|
16
17
|
@app.call(env)
|
17
18
|
end
|
18
19
|
end
|