grape-appsignal 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f68fecd4606db97e2b8bc305a6e1d8b0c5ff7dc
4
- data.tar.gz: 7d992093ebb781e606c7b0f78da49c56b3981bb6
3
+ metadata.gz: f311666b0bb23c686df9aaf2cb0d02d93779cc71
4
+ data.tar.gz: 8f8f3a49a22d73af5a76cc22dcbbf225dfd06145
5
5
  SHA512:
6
- metadata.gz: bb61d5edbf17dbdeb74dc927bd74e65b01747e1a228637300caa8b30a6bb56ea15bf4d060d93a51d62b5ab5d9a0fccef6df73bfca748fddb37f8d9e1b6bbef4e
7
- data.tar.gz: 21e8b52742f1119dacab72d1d2bb8e169356ffd3b46a7907cedaff2a49dc90e558442fc20664bec58f22305603a14c8370163c30cdca100265828f344e398e3a
6
+ metadata.gz: bfdcef06a17deab910a475484da3087b9a4c4eee6c69a875fc6dd9c78aeca6f1c1e1e2ac0abe2eb91bac9b93bae9e6f0899706f7a7b39b8b8fb23e7f16346eef
7
+ data.tar.gz: d607c876afd687d2f0c5f256031ab92d08214364389caa97e3296087a1a4a84943f489a5d685d9ca3e4817ea3ac59441dc67cc6f9ed99e13bcb2ff45314c9a65
@@ -11,7 +11,7 @@ module Appsignal
11
11
  def call(env)
12
12
  req = ::Rack::Request.new(env)
13
13
  request_path = env['api.endpoint'].routes.first.route_path[1..-1].gsub(/\(\.:format\)\z/, "")
14
- metric_name = "grape.api"
14
+ metric_name = "process_action.grape"
15
15
  ActiveSupport::Notifications.instrument(metric_name, { method: req.request_method, path: request_path } ) do |payload|
16
16
  @app.call(env)
17
17
  end
@@ -1,5 +1,5 @@
1
1
  module Appsignal
2
2
  module Grape
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -16,7 +16,7 @@ describe Appsignal::Grape::Middleware do
16
16
 
17
17
  before(:all) do
18
18
  @events = []
19
- ActiveSupport::Notifications.subscribe('grape.api') do |*args|
19
+ ActiveSupport::Notifications.subscribe('process_action.grape') do |*args|
20
20
  @events << ActiveSupport::Notifications::Event.new(*args)
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-appsignal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Madsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-02 00:00:00.000000000 Z
11
+ date: 2014-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appsignal