newrelic-infinite_tracing 6.14.0 → 6.15.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: 4585a912bfab11708d93665553ffa264b4a049769e73d13810a61d1afd006ef7
4
- data.tar.gz: 4adb94928aecccefe77c6ef0b1c69dac4a2304815e8ec8ec87abcfa1805cfa90
3
+ metadata.gz: dc39cecc639ecf00228523ab5a0f61c320ebf0ab656bef946e46a98a021dcad9
4
+ data.tar.gz: fe96fa6bf2ad2cc53a3d6c33e37c2204b8fcb2031e3d22723736a87d35ea5b3a
5
5
  SHA512:
6
- metadata.gz: 1aae885dff70f24152ce94119b2df69c38f0084bf2fcf877e7b94e6648cd7e97ac37e8cf4527f06fb8a4a4297a248379e7429209e205765c7551cb5c31871af1
7
- data.tar.gz: 3580dc34ec0f006d4bc681a49c5fd1aa2d9e9724f18efb9818be14d8626634d0678ab8b00117dd73c02793cc90e08f2920bf1410214c8b077d952b5c6be32c99
6
+ metadata.gz: 38ea40bb30a9b6cf58278761c7b097234773562d373d55172be7ab70f6d5421df85b195150389975859df79e9b1c891394d06f3488bec983cb4c4f9515a98a82
7
+ data.tar.gz: d48da08ed88d0442a89219eb4212e0b3b1f02904357125803addfb01ed6cf8f9c2c838ec5b99166edd2981ce75b7c5ed34bba446eccceb405cd6736dcdf18d9f
@@ -1,4 +1,7 @@
1
1
  # New Relic Infinite Tracing for Ruby Agent Release Notes #
2
+
3
+ ## v6.15.0
4
+ * Adds data from the agents connect response `request_headers_map` to the metadata for the connection to the infinite trace observer.
2
5
 
3
6
  ## v6.12.0
4
7
 
@@ -77,6 +77,7 @@ module NewRelic::Agent
77
77
 
78
78
  case error
79
79
  when GRPC::Unavailable then restart
80
+ when GRPC::FailedPrecondition then restart
80
81
  when GRPC::Unimplemented then suspend
81
82
  else
82
83
  # Set exponential backoff to false so we'll reconnect at periodic (15 second) intervals instead
@@ -152,8 +153,6 @@ module NewRelic::Agent
152
153
  def record_span_batches exponential_backoff
153
154
  RecordStatusHandler.new self, Connection.record_span_batches(self, buffer.batch_enumerator, exponential_backoff)
154
155
  end
155
-
156
156
  end
157
-
158
157
  end
159
158
  end
@@ -97,6 +97,7 @@ module NewRelic::Agent
97
97
  "license_key" => license_key,
98
98
  "agent_run_token" => agent_id
99
99
  }
100
+ @metadata.merge!(request_headers_map)
100
101
  end
101
102
  end
102
103
 
@@ -138,6 +139,12 @@ module NewRelic::Agent
138
139
  NewRelic::Agent.config[:license_key]
139
140
  end
140
141
 
142
+ def request_headers_map
143
+ headers = NewRelic::Agent.agent.service.instance_variable_get(:@request_headers_map) || NewRelic::EMPTY_HASH
144
+ # transform_keys only 2.5+, but infinite tracing is 2.5+ only also
145
+ headers.transform_keys(&:downcase)
146
+ end
147
+
141
148
  # Continues retrying the connection at backoff intervals until a successful connection is made
142
149
  def with_reconnection_backoff exponential_backoff=true, &block
143
150
  @connection_attempts = 0
@@ -76,7 +76,7 @@ EOS
76
76
  s.summary = "New Relic Infinite Tracing for the Ruby agent"
77
77
 
78
78
  s.add_dependency 'newrelic_rpm', NewRelic::VERSION::STRING
79
- s.add_dependency 'grpc', '~> 1.28.0'
79
+ s.add_dependency 'grpc', '~> 1.34'
80
80
 
81
81
  s.add_development_dependency 'rake', '12.3.3'
82
82
  s.add_development_dependency 'rb-inotify', '0.9.10' # locked to support < Ruby 2.3 (and listen 3.0.8)
@@ -90,5 +90,5 @@ EOS
90
90
  s.add_development_dependency 'hometown', '~> 0.2.5'
91
91
  s.add_development_dependency 'bundler'
92
92
 
93
- s.add_development_dependency 'grpc-tools', "~> 1.14.0"
93
+ s.add_development_dependency 'grpc-tools', "~> 1.14"
94
94
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newrelic-infinite_tracing
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.14.0
4
+ version: 6.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rachel Klein
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-11-20 00:00:00.000000000 Z
13
+ date: 2021-01-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: newrelic_rpm
@@ -18,28 +18,28 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 6.14.0
21
+ version: 6.15.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 6.14.0
28
+ version: 6.15.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: grpc
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: 1.28.0
35
+ version: '1.34'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: 1.28.0
42
+ version: '1.34'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: rake
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -200,14 +200,14 @@ dependencies:
200
200
  requirements:
201
201
  - - "~>"
202
202
  - !ruby/object:Gem::Version
203
- version: 1.14.0
203
+ version: '1.14'
204
204
  type: :development
205
205
  prerelease: false
206
206
  version_requirements: !ruby/object:Gem::Requirement
207
207
  requirements:
208
208
  - - "~>"
209
209
  - !ruby/object:Gem::Version
210
- version: 1.14.0
210
+ version: '1.14'
211
211
  description: |
212
212
  The New Relic Ruby agent requires the gem newrelic_rpm, and it includes distributed
213
213
  tracing that uses head-based sampling (standard distributed tracing).