newrelic_rpm 8.13.0 → 8.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -0
- data/CHANGELOG.md +10 -1
- data/README.md +1 -2
- data/lib/new_relic/agent/instrumentation/redis/instrumentation.rb +2 -4
- data/lib/new_relic/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c5439c88f9169482c8899f11dc1f44062a80416ec8c8afa6e29fc426adf716e
|
4
|
+
data.tar.gz: 496c2021677de4853c07550f43d76fc78c73cd3dcae8b5e632f72e7f8e1db68f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdc8298c1fc3f96a1ed63a919ff5aed1bfbdf423a9e1f4b69afb21b9729000e53c4f28c59a776e854875160c4accc9b0b6eff5a019b435c6582eadeba688bb05
|
7
|
+
data.tar.gz: 9375a116af17397f6c05dc6d0a9d413ff147f097647340e1dd4f635f457398caf437034ad92a64ba10cbe4e7ee5db076cc9bdc447c32ecaf20f5ad6cf1f9948b
|
data/.rubocop.yml
CHANGED
@@ -1331,6 +1331,7 @@ Style/MethodCallWithArgsParentheses:
|
|
1331
1331
|
- add_development_dependency
|
1332
1332
|
- expect
|
1333
1333
|
- fail
|
1334
|
+
- gem
|
1334
1335
|
- include
|
1335
1336
|
- print
|
1336
1337
|
- puts
|
@@ -1338,6 +1339,7 @@ Style/MethodCallWithArgsParentheses:
|
|
1338
1339
|
- raise
|
1339
1340
|
- require
|
1340
1341
|
- skip
|
1342
|
+
- source
|
1341
1343
|
- stub
|
1342
1344
|
AllowedPatterns: [^assert, ^refute]
|
1343
1345
|
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# New Relic Ruby Agent Release Notes #
|
2
2
|
|
3
|
+
## v8.13.1
|
4
|
+
|
5
|
+
Version 8.13.1 of the agent provides a bugfix for Redis v5.0 instrumentation.
|
6
|
+
|
7
|
+
* **Fix NoMethodError when using Sidekiq v7.0 with Redis Client v0.11**
|
8
|
+
|
9
|
+
In some cases, the `RedisClient` object cannot directly access methods like db, port, or path. These methods are always available on the `client.config` object. This raised a `NoMethodError` in environments that used Sidekiq v7.0 and [Redis Client](https://rubygems.org/gems/redis-client) v0.11. Thank you to [fcheung](https://github.com/fcheung) and [@stevenou](https://github.com/stevenou) for bringing this to our attention! [Issue#1639](https://github.com/newrelic/newrelic-ruby-agent/issues/1639)
|
10
|
+
|
11
|
+
|
3
12
|
## v8.13.0
|
4
13
|
|
5
14
|
Version 8.13.0 of the agent updates our Rack, Redis, and Sidekiq instrumentation. It also delivers some bugfixes.
|
@@ -10,7 +19,7 @@
|
|
10
19
|
|
11
20
|
* **Support for Sidekiq v7.0**
|
12
21
|
|
13
|
-
Sidekiq v7.0 removed Delayed Extensions and began offering client and server [middleware](https://github.com/mperham/sidekiq/blob/main/docs/middleware.md) classes to inherit from. The agent's Sidekiq instrumentation has been updated accordingly. The agent's behavior when used with older Sidekiq versions will remain unaffected. [PR#1615](https://github.com/newrelic/newrelic-ruby-agent/pull/1615)
|
22
|
+
Sidekiq v7.0 removed Delayed Extensions and began offering client and server [middleware](https://github.com/mperham/sidekiq/blob/main/docs/middleware.md) classes to inherit from. The agent's Sidekiq instrumentation has been updated accordingly. The agent's behavior when used with older Sidekiq versions will remain unaffected. [PR#1615](https://github.com/newrelic/newrelic-ruby-agent/pull/1615) **NOTE:** an issue was discovered with Sidekiq v7.0+ and addressed by Ruby agent v8.13.1. If you are using Sidekiq, please skip Ruby agent v8.13.0 and use v8.13.1 or above.
|
14
23
|
|
15
24
|
* **Support for Rack v3.0: Rack::Builder#new accepting a block**
|
16
25
|
|
data/README.md
CHANGED
@@ -76,12 +76,11 @@ For complete documentation on installing the New Relic Ruby agent, see the follo
|
|
76
76
|
|
77
77
|
### Recording Deploys
|
78
78
|
|
79
|
-
The Ruby agent supports
|
79
|
+
The Ruby agent supports recording deployments in New Relic via a command line
|
80
80
|
tool or Capistrano recipes. For more information on these features, see
|
81
81
|
[our deployment documentation](http://docs.newrelic.com/docs/ruby/recording-deployments-with-the-ruby-agent)
|
82
82
|
for more information.
|
83
83
|
|
84
|
-
*There is a [known issue](https://github.com/newrelic/newrelic-ruby-agent/issues/715) that prevents newly generated New Relic API keys from recording deploys.
|
85
84
|
|
86
85
|
## Support
|
87
86
|
|
@@ -30,9 +30,7 @@ module NewRelic::Agent::Instrumentation
|
|
30
30
|
operation = pipeline.flatten.include?('MULTI') ? Constants::MULTI_OPERATION : Constants::PIPELINE_OPERATION
|
31
31
|
statement = ::NewRelic::Agent::Datastores::Redis.format_pipeline_commands(pipeline)
|
32
32
|
|
33
|
-
|
34
|
-
# access the client instance var on self
|
35
|
-
with_tracing(operation, statement: statement, database: client.db) { yield }
|
33
|
+
with_tracing(operation, statement: statement, database: client.config.db) { yield }
|
36
34
|
end
|
37
35
|
|
38
36
|
private
|
@@ -68,7 +66,7 @@ module NewRelic::Agent::Instrumentation
|
|
68
66
|
end
|
69
67
|
|
70
68
|
def _nr_client
|
71
|
-
@nr_client ||= self.is_a?(::Redis::Client) ? self : client
|
69
|
+
@nr_client ||= self.is_a?(::Redis::Client) ? self : client.config
|
72
70
|
end
|
73
71
|
end
|
74
72
|
end
|
data/lib/new_relic/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: newrelic_rpm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.13.
|
4
|
+
version: 8.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tanna McClure
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2022-11-
|
14
|
+
date: 2022-11-21 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|