gruf-newrelic 1.2.1 → 1.3.0

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
  SHA256:
3
- metadata.gz: 7ab80ebcfd5880aba1f38f4e0589234a047cd02bfc822213868141e82d402e43
4
- data.tar.gz: 39455e9867111371ca4cfe8470296da6acec9ba420ac8dddb99f3200798a7889
3
+ metadata.gz: e4545fc3ec3f8a051672df3c7b04b1bd9e4729830b1f953e310dac52d617d9ce
4
+ data.tar.gz: 79701b61aa9ae0ff07bb1a05e1fc435561cd98e23082b03f0d03e1d37fa88097
5
5
  SHA512:
6
- metadata.gz: 39895f2daff34bf36d327e5fdcd9adf1a237f5ee4d10cf2795eee584c01716d34a683643e472a90aad942ec786f23bd2bf5159955cd2572996704b6c8578333b
7
- data.tar.gz: 8701b10ddcdc8c200a7642bd19a20ac08df95c840696f830c98af5d6abbfe5102ee3642514e711f6396332b7df4a0fd9f4e36e522084acf4a97edd888211b626
6
+ metadata.gz: 77a0fa8947e91bdc61261b9a6f8279d265cec48cb3249e923cfabc9fc22679af5ad2bfefc660afca2486abc4241da033ce0f2bae1eeb1da1ef67b2ebfc813800
7
+ data.tar.gz: 4535dfbe2e8418eb665ac62274b4a937eac9933f58b4e31dfffa5584a13f2ab18b2c3fbfce0db2c2aabe303ce224480975e4b17d95b35eb53e346ac5ae0ac18d
@@ -2,6 +2,10 @@ Changelog for the gruf-newrelic gem.
2
2
 
3
3
  ### Pending Release
4
4
 
5
+ ### 1.3.0
6
+
7
+ - Allow customization of transaction name prefix [#7]
8
+
5
9
  ### 1.2.1
6
10
 
7
11
  - Fix issue with NewRelic trace headers when they are arrays
@@ -22,7 +22,8 @@ module Gruf
22
22
  #
23
23
  module Configuration
24
24
  VALID_CONFIG_KEYS = {
25
- server_category: :controller
25
+ server_category: :controller,
26
+ transaction_name_prefixes: []
26
27
  }.freeze
27
28
 
28
29
  attr_accessor *VALID_CONFIG_KEYS.keys
@@ -26,9 +26,10 @@ module Gruf
26
26
  include ::NewRelic::Agent::Instrumentation::ControllerInstrumentation
27
27
 
28
28
  def call
29
+ class_name_components = Gruf::Newrelic.transaction_name_prefixes + [request.service]
29
30
  opts = {
30
31
  category: Gruf::Newrelic.server_category,
31
- class_name: request.service,
32
+ class_name: class_name_components.join('/'),
32
33
  name: request.method_key
33
34
  }
34
35
 
@@ -17,6 +17,6 @@
17
17
  #
18
18
  module Gruf
19
19
  module Newrelic
20
- VERSION = '1.2.1'
20
+ VERSION = '1.3.0'
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gruf-newrelic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaun McCormick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-10 00:00:00.000000000 Z
11
+ date: 2020-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.11'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '2'
20
23
  type: :development
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '1.11'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '2'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: bundler-audit
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -42,14 +48,14 @@ dependencies:
42
48
  name: rake
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
- - - "~>"
51
+ - - ">="
46
52
  - !ruby/object:Gem::Version
47
53
  version: '10.0'
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
- - - "~>"
58
+ - - ">="
53
59
  - !ruby/object:Gem::Version
54
60
  version: '10.0'
55
61
  - !ruby/object:Gem::Dependency
@@ -86,28 +92,28 @@ dependencies:
86
92
  requirements:
87
93
  - - "~>"
88
94
  - !ruby/object:Gem::Version
89
- version: '0.79'
95
+ version: '0.82'
90
96
  type: :development
91
97
  prerelease: false
92
98
  version_requirements: !ruby/object:Gem::Requirement
93
99
  requirements:
94
100
  - - "~>"
95
101
  - !ruby/object:Gem::Version
96
- version: '0.79'
102
+ version: '0.82'
97
103
  - !ruby/object:Gem::Dependency
98
104
  name: simplecov
99
105
  requirement: !ruby/object:Gem::Requirement
100
106
  requirements:
101
107
  - - "~>"
102
108
  - !ruby/object:Gem::Version
103
- version: '0.15'
109
+ version: '0.18'
104
110
  type: :development
105
111
  prerelease: false
106
112
  version_requirements: !ruby/object:Gem::Requirement
107
113
  requirements:
108
114
  - - "~>"
109
115
  - !ruby/object:Gem::Version
110
- version: '0.15'
116
+ version: '0.18'
111
117
  - !ruby/object:Gem::Dependency
112
118
  name: pry
113
119
  requirement: !ruby/object:Gem::Requirement