newrelic-hanami 0.4.3 → 0.4.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
- SHA1:
3
- metadata.gz: d446277d8ecd7179834d120729bff160657c2453
4
- data.tar.gz: 73ef0b5288e8bb639b85a3734b9ed9449cf7753b
2
+ SHA256:
3
+ metadata.gz: 7df50207dccb1c3713a67548fbe40eeeedff3d0f2ab6f7a9a0e46799731df211
4
+ data.tar.gz: cdd73147b1dda5add3918f4d7660d1128ae5a7a2f78187873b080223eb7c7601
5
5
  SHA512:
6
- metadata.gz: 9fcab54365134be3be091e2706051ff2ed44f4957d800a7fcdd6702308f59f18fdfc6d789713ee0fb5006e8be2a84b9c22558ea8eb2cca806bac8917116f2238
7
- data.tar.gz: 126ce8c7559130d17c8f3401bd87dc39e52c09eeb914831387632100e6a29fa40ff83d62355149d9419124d10af089d6144a363bc9a244401ebc0328d50d9673
6
+ metadata.gz: 8844a4bdf3b04e36d4a8d12be71ad3dea787a9e18d80d736fc55ec5a5add681231d27c2453ba215a28bfeb0b7c7a37c401c4c57287edaa01b5fca2434fc3d44a
7
+ data.tar.gz: a79663d9e5b443db31cafc83491834abf85ad93d697b7c42a711a173026dd1c7579a96453577016e3540470147362537346951c78f4dd57a3c8e8931d546a424
@@ -8,6 +8,7 @@ module NewRelic
8
8
  module Instrumentation
9
9
  module Hanami
10
10
  include ControllerInstrumentation
11
+ NAME_REGEX = /Controllers::/.freeze
11
12
 
12
13
  protected
13
14
 
@@ -22,7 +23,7 @@ module NewRelic
22
23
  def _trace_options
23
24
  {
24
25
  category: :controller,
25
- path: "#{request.request_method} #{request.path}",
26
+ name: self.class.name.sub(NAME_REGEX, ''),
26
27
  request: request,
27
28
  params: params.to_h
28
29
  }
@@ -1,5 +1,5 @@
1
1
  module NewRelic
2
2
  module Hanami
3
- VERSION = '0.4.3'
3
+ VERSION = '0.4.4'
4
4
  end
5
5
  end
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
  spec.require_paths = ['lib']
17
17
 
18
18
  spec.add_runtime_dependency 'newrelic_rpm'
19
- spec.add_runtime_dependency 'hanami-controller', '> 0.4.0', '< 1.0.0'
19
+ spec.add_runtime_dependency 'hanami-controller', '> 0.4.0', "< 2"
20
20
 
21
21
  spec.add_development_dependency 'rake', '~> 10.0'
22
22
  spec.add_development_dependency 'rspec'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newrelic-hanami
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuri Artemev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-12 00:00:00.000000000 Z
11
+ date: 2018-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: newrelic_rpm
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: 0.4.0
34
34
  - - "<"
35
35
  - !ruby/object:Gem::Version
36
- version: 1.0.0
36
+ version: '2'
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: 0.4.0
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
- version: 1.0.0
46
+ version: '2'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  version: '0'
111
111
  requirements: []
112
112
  rubyforge_project:
113
- rubygems_version: 2.6.8
113
+ rubygems_version: 2.7.6
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: Gem for connecting NewRelic and Hanami