appsignal 2.4.2 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c008c5a0958c17a45c16e4e3826386b39714826efbd96fb94ca6dc93556dbf43
4
- data.tar.gz: 3fcd891b61297f5eaa47fd8780f374ba2acf8e4c5be084834160bea1d6df4389
3
+ metadata.gz: e4ab143f228d94a363e4689815fd535ce46f1a320847df9ed1cf307a1d98318a
4
+ data.tar.gz: b0b7e3193dea2004e41550ed803cb1055f4a35f07a891c8d6857a63417917f4b
5
5
  SHA512:
6
- metadata.gz: f23da15ff85954a2dbeab46eb69457d8eaa49c198878c0f55e5e874493006481995bb676f0ebbb204839166e15b1780296a630e901539c991ee33cd5829bbbe4
7
- data.tar.gz: 83a5342a8c0d369b1c9d1494e7b4070373e85695d2de31251a1b1905f2d825cb758e5404364079598596e2cf05ff0a49084a8bc43db3d77c886fac90ff4e90e6
6
+ metadata.gz: a0c4da23abe2cffccc34e8ab9f0d5e9ef12d3512d878718ff3844ca27c37e44c3899361b28a6f038e56d127c734ce7b63b3151d4d91506d16b7909498a55b2ca
7
+ data.tar.gz: 8fe67e9d23ffa026548c230fea7683cb0ac6f4651109901d0de2d1ec0857d792078ba45d825e8cb0169b8e5c916a8fdec3519fae6568d79c8551aee6639a22d4
@@ -1,3 +1,6 @@
1
+ # 2.4.3
2
+ * Store more details for Redis events. PR #374
3
+
1
4
  # 2.4.2
2
5
  * Store agent architecture rather than platform. PR #367
3
6
  * Improve documentation for `Appsignal.monitor_transaction` better.
@@ -15,7 +15,11 @@ module Appsignal
15
15
  alias process_without_appsignal process
16
16
 
17
17
  def process(commands, &block)
18
- Appsignal.instrument "query.redis" do
18
+ sanitized_commands = commands.map do |command, *args|
19
+ "#{command}#{" ?" * args.size}"
20
+ end.join("\n")
21
+
22
+ Appsignal.instrument "query.redis", id, sanitized_commands do
19
23
  process_without_appsignal(commands, &block)
20
24
  end
21
25
  end
@@ -1,5 +1,5 @@
1
1
  require "yaml"
2
2
 
3
3
  module Appsignal
4
- VERSION = "2.4.2".freeze
4
+ VERSION = "2.4.3".freeze
5
5
  end
@@ -24,10 +24,10 @@ describe Appsignal::Hooks::RedisHook do
24
24
  .at_least(:once)
25
25
  expect(Appsignal::Transaction.current).to receive(:finish_event)
26
26
  .at_least(:once)
27
- .with("query.redis", nil, nil, 0)
27
+ .with("query.redis", "redis://127.0.0.1:6379/0", "get ?", 0)
28
28
 
29
29
  client = Redis::Client.new
30
- expect(client.process([])).to eq 1
30
+ expect(client.process([[:get, "key"]])).to eq 1
31
31
  end
32
32
  end
33
33
 
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: 2.4.2
4
+ version: 2.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Beekman
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-11-23 00:00:00.000000000 Z
12
+ date: 2017-11-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack