appsignal 3.0.22-java → 3.0.23-java

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: 61dc2deb7f2fb68c80c83b94d911f9c11b7af516b38c125b4da3effb1e46edc4
4
- data.tar.gz: d784f570079e3fa8fb4938866d3d0dcf9b37f91c351456821921a6881065feba
3
+ metadata.gz: d0a8e7c62a9f20677d9e661ba95f8603d2c125aea696e3026622ce5167518cb7
4
+ data.tar.gz: 2f82a1a82dcbb5cd8dfb6717302b5ee546367702d9c88f8fb429fbb4ae23a93b
5
5
  SHA512:
6
- metadata.gz: 79f7922982a074b50c42d58afed577ee808a7e1da9bce765b74472acbb487cd2de29ff3b6ee0e2b26126ec3c07f96bb10f140ed1c5eb8a23702d6d5d3d10d064
7
- data.tar.gz: a2d13999e2f73f8173866fba3fa6b5de0226fa966f8345bf54f25c548a0b7a6314093b69d43dc465b361e998f7919f59c71a45cb4f155cf580f4c82c094cdaa4
6
+ metadata.gz: 9e86439110442d5e184d8b269efacec5a57c91a4037b3b9d114a94c25fde8c7171ebee25976ac6fda47a6bd84dfdf4c4a4a1124a73964f2880d962a64db2a776
7
+ data.tar.gz: 914145f0b0a6d6ade3e1c9ee5f9456b318e45914c216e4f9fa1694f725eb575c7dab78904f69b268ef61024743588b8060ddffec15df9a5ee73bf40f05997a43
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # AppSignal for Ruby gem Changelog
2
2
 
3
+ ## 3.0.23
4
+
5
+ ### Fixed
6
+
7
+ - [d73905d3](https://github.com/appsignal/appsignal-ruby/commit/d73905d3b28404638a8aa1e8de3909eff0b8cfb6) patch - Fix sanitized values wrapped in Arrays. When a value like `[{ "foo" => "bar" }]` was sanitized it would be stored as `{ "foo" => "?" }`, omitting the parent value's Array square brackets. Now values will appear with the same structure as they were originally sanitized. This only applies to certain integrations like MongoDB, moped and ElasticSearch.
8
+ - [096d3cdf](https://github.com/appsignal/appsignal-ruby/commit/096d3cdfd8f452f13b2dbf7de6b763c8a96973b3) patch - Fix the ActiveJob `default_queue_name` config option issue being reset to "default". When ActiveJob `default_queue_name` was set in a Rails initializer it would reset on load to `default`. Now the `default_queue_name` can be set in an initializer as well.
9
+
3
10
  ## 3.0.22
4
11
 
5
12
  ### Changed
@@ -211,6 +218,10 @@ Please read our [upgrade from version 2 to 3 guide][upgrade3] before upgrading.
211
218
  - Add Sidekiq error handler. Report more Sidekiq errors that happen around job
212
219
  execution. PR #699
213
220
 
221
+ ## 2.11.10
222
+ - Backport extension fallbacks on extension installation failure, that caused
223
+ NoMethodErrors. PR #736
224
+
214
225
  ## 2.11.9
215
226
  - Fix and simplify Ruby method delegation for object method instrumentation in
216
227
  the different Ruby versions. PR #706
@@ -11,8 +11,10 @@ module Appsignal
11
11
  end
12
12
 
13
13
  def install
14
- ::ActiveJob::Base
15
- .extend ::Appsignal::Hooks::ActiveJobHook::ActiveJobClassInstrumentation
14
+ ActiveSupport.on_load(:active_job) do
15
+ ::ActiveJob::Base
16
+ .extend ::Appsignal::Hooks::ActiveJobHook::ActiveJobClassInstrumentation
17
+ end
16
18
  end
17
19
 
18
20
  module ActiveJobClassInstrumentation
@@ -35,7 +35,7 @@ module Appsignal
35
35
 
36
36
  def sanitize_array(array, only_top_level, key_sanitizer)
37
37
  if only_top_level
38
- sanitize(array[0], only_top_level, key_sanitizer)
38
+ [sanitize(array[0], only_top_level, key_sanitizer)]
39
39
  else
40
40
  array.map do |value|
41
41
  sanitize(value, only_top_level, key_sanitizer)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Appsignal
4
- VERSION = "3.0.22".freeze
4
+ VERSION = "3.0.23".freeze
5
5
  end
@@ -76,7 +76,7 @@ describe Appsignal::EventFormatter::Moped::QueryFormatter do
76
76
  )
77
77
  end
78
78
 
79
- it { is_expected.to eq ["Insert", '{:database=>"database.collection", :documents=>{"_id"=>"?", "events"=>"?"}, :count=>2, :flags=>[]}'] }
79
+ it { is_expected.to eq ["Insert", '{:database=>"database.collection", :documents=>[{"_id"=>"?", "events"=>"?"}], :count=>2, :flags=>[]}'] }
80
80
  end
81
81
 
82
82
  context "Moped::Protocol::Update" do
@@ -33,7 +33,7 @@ describe Appsignal::Utils::QueryParamsSanitizer do
33
33
  let(:value) { ["foo" => "bar"] }
34
34
 
35
35
  it "should sanitize all hash values with a questionmark" do
36
- expect(subject).to eq("foo" => "?")
36
+ expect(subject).to eq(["foo" => "?"])
37
37
  end
38
38
 
39
39
  it "should not modify source value" do
@@ -45,8 +45,8 @@ describe Appsignal::Utils::QueryParamsSanitizer do
45
45
  context "when value is an array" do
46
46
  let(:value) { %w[foo bar] }
47
47
 
48
- it "should only return the first level of the object" do
49
- expect(subject).to eq("?")
48
+ it "sanitizes all array values" do
49
+ expect(subject).to eq(["?"])
50
50
  end
51
51
 
52
52
  it "should not modify source value" do
@@ -58,8 +58,8 @@ describe Appsignal::Utils::QueryParamsSanitizer do
58
58
  context "when value is a mixed array" do
59
59
  let(:value) { [nil, "foo", "bar"] }
60
60
 
61
- it "should sanitize all hash values with a single questionmark" do
62
- expect(subject).to eq("?")
61
+ it "should sanitize all array values with a single questionmark" do
62
+ expect(subject).to eq(["?"])
63
63
  end
64
64
  end
65
65
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appsignal
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.22
4
+ version: 3.0.23
5
5
  platform: java
6
6
  authors:
7
7
  - Robert Beekman
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-02-21 00:00:00.000000000 Z
13
+ date: 2022-02-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rack