appsignal 2.9.10 → 2.9.12

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: d04cb355cc01a8a6bac57d80e60a60f477facc26c89bf2dfe1dc9b19064ece9d
4
- data.tar.gz: 2884eb415ce21ba319ef600810adc5b6a6d714ac8468b4d45df2773453932b9a
3
+ metadata.gz: 9b5ae02db2a26b529e0745bbd7273ad4ce7ca450f605131c4689ed9279252e0a
4
+ data.tar.gz: 5822eab9b38e092ab33bd14d63c11e0fa5bcb2ae4746e2f43c18be5707c4fe50
5
5
  SHA512:
6
- metadata.gz: 65d42043a073fd994e5a5a139388fae3874e235a5f6e346a7877f0d5a9e17bd6ed5aa124661df31ba374cdedf1cc2ce864460dd3db4593cf0182b21bd8962622
7
- data.tar.gz: 675bd7ca267324f1efb17194d4dda0ac75e03b4497c7c42b52c292efb84197fcd87a1ea2c65ebe605c14a2c063d7956dcd7cce39e48f2a6af0105f2bbef40ed4
6
+ metadata.gz: d3023f920ae8b20510612a9e2b65a4884fd177ea8999d1dd7ac04d1755cc15b28d65db9765529a8369da4f64fc00a0336e3f4018e37417c7bbbc1accafb7b187
7
+ data.tar.gz: 16e5e023a2ba9b4d0e618cf384b61be6ecb43d4d7a403d555c5e6af77b0963d98b7aa3263f07065d2d048a079d4b9b4d490edc31d7d987cc59a5d7b21fe0db33
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.9.12
4
+ - Bump agent to a3e0f83 - commit 3d94dd42645922214fc2f5bc09cfa7c597323198
5
+ - More reliable detection of whether agent is running on Docker.
6
+ - Fix Sequel install hook version detection mismatch. PR #553
7
+ - Improve support for older Sidekiq versions. PR #555
8
+
9
+ ## 2.9.11
10
+ - Bump agent to v-a718022
11
+ - Fix container CPU runtime metrics.
12
+ See https://github.com/appsignal/probes-rs/pull/38 for more information.
13
+ - Improve host metrics calculations accuracy for counter metrics.
14
+ See https://github.com/appsignal/probes-rs/pull/40 for more information.
15
+ - Support Kernel 4.18+ format of /proc/diskstats file parsing.
16
+ See https://github.com/appsignal/probes-rs/pull/39 for more information.
17
+
3
18
  ## 2.9.10
4
19
  - Fix Puma minutely probe start where `daemonize` is set to `true`. PR #548
5
20
 
data/README.md CHANGED
@@ -6,6 +6,7 @@ issues.
6
6
 
7
7
  - [AppSignal.com website][appsignal]
8
8
  - [Documentation][docs]
9
+ - [Ruby code documentation][ruby-doc]
9
10
  - [Support][contact]
10
11
 
11
12
  [![Build Status](https://travis-ci.org/appsignal/appsignal-ruby.png?branch=master)](https://travis-ci.org/appsignal/appsignal-ruby)
@@ -275,6 +276,7 @@ Also see our [SUPPORT.md file](SUPPORT.md).
275
276
  [coc]: https://docs.appsignal.com/appsignal/code-of-conduct.html
276
277
  [waffles-page]: https://appsignal.com/waffles
277
278
  [docs]: http://docs.appsignal.com
279
+ [ruby-doc]: https://www.rubydoc.info/gems/appsignal
278
280
  [contributing-guide]: http://docs.appsignal.com/appsignal/contributing.html
279
281
  [supported-systems]: http://docs.appsignal.com/support/operating-systems.html
280
282
  [integrations]: http://docs.appsignal.com/ruby/integrations/index.html
@@ -2,7 +2,7 @@
2
2
 
3
3
  require File.expand_path("../lib/appsignal/version", __FILE__)
4
4
 
5
- Gem::Specification.new do |gem|
5
+ Gem::Specification.new do |gem| # rubocop:disable Metrics/BlockLength
6
6
  gem.authors = [
7
7
  "Robert Beekman",
8
8
  "Thijs Cadier"
@@ -25,6 +25,15 @@ Gem::Specification.new do |gem|
25
25
  # `Rakefile`.
26
26
  gem.extensions = %w[ext/extconf.rb]
27
27
 
28
+ gem.metadata = {
29
+ "bug_tracker_uri" => "https://github.com/appsignal/appsignal-ruby/issues",
30
+ "changelog_uri" =>
31
+ "https://github.com/appsignal/appsignal-ruby/blob/master/CHANGELOG.md",
32
+ "documentation_uri" => "https://docs.appsignal.com/ruby/",
33
+ "homepage_uri" => "https://docs.appsignal.com/ruby/",
34
+ "source_code_uri" => "https://github.com/appsignal/appsignal-ruby"
35
+ }
36
+
28
37
  gem.add_dependency "rack"
29
38
 
30
39
  gem.add_development_dependency "rake", "~> 11"
@@ -49,7 +49,6 @@ matrix:
49
49
  minimal:
50
50
  - "no_dependencies"
51
51
  - "rails-5.2"
52
- - "rails-6.2"
53
52
 
54
53
  ruby:
55
54
  - ruby: "2.0.0"
@@ -103,6 +102,10 @@ matrix:
103
102
  exclude:
104
103
  ruby:
105
104
  - "2.0.0"
105
+ - "2.1.8"
106
+ - "2.2.4"
107
+ - "2.3.8"
108
+ - "2.4.5"
106
109
  - gem: "resque"
107
110
  bundler: "1.17.3"
108
111
  - gem: "sequel"
@@ -1,67 +1,67 @@
1
1
  ---
2
- version: d8dc806
2
+ version: a3e0f83
3
3
  triples:
4
4
  x86_64-darwin:
5
5
  static:
6
- checksum: a2cc43f4fd296a6a3db06096030185c7cfbdde701b19c1580b44ee5c1bdbef95
7
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/d8dc806/appsignal-x86_64-darwin-all-static.tar.gz
6
+ checksum: 1c69f3afb99150de620f7ed605e48e4d0e3a3470e996974725dd7038605b28a7
7
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-darwin-all-static.tar.gz
8
8
  dynamic:
9
- checksum: 77e4bb01a260e7daf798388a44e54ec1950a880563858a1b323eb9eb0426c790
10
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/d8dc806/appsignal-x86_64-darwin-all-dynamic.tar.gz
9
+ checksum: f391373750c9fe25a76cb55bfbc5790cf1f1242cb5a6ebbbac92b65c890120fe
10
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-darwin-all-dynamic.tar.gz
11
11
  universal-darwin:
12
12
  static:
13
- checksum: a2cc43f4fd296a6a3db06096030185c7cfbdde701b19c1580b44ee5c1bdbef95
14
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/d8dc806/appsignal-x86_64-darwin-all-static.tar.gz
13
+ checksum: 1c69f3afb99150de620f7ed605e48e4d0e3a3470e996974725dd7038605b28a7
14
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-darwin-all-static.tar.gz
15
15
  dynamic:
16
- checksum: 77e4bb01a260e7daf798388a44e54ec1950a880563858a1b323eb9eb0426c790
17
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/d8dc806/appsignal-x86_64-darwin-all-dynamic.tar.gz
16
+ checksum: f391373750c9fe25a76cb55bfbc5790cf1f1242cb5a6ebbbac92b65c890120fe
17
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-darwin-all-dynamic.tar.gz
18
18
  i686-linux:
19
19
  static:
20
- checksum: ac048bc96c05b4662d8959d2bb7c9028ba9a6fcd78f08cd284457dba8db4e0fc
21
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/d8dc806/appsignal-i686-linux-all-static.tar.gz
20
+ checksum: 5c4e33f0b64c5848a6e755d0e6d8876750d33dcf6f20a4161053ae9be6fd5322
21
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-i686-linux-all-static.tar.gz
22
22
  dynamic:
23
- checksum: 0ae2e52d86416a78a75632bef5c7f3d151d57ea76d45457a39926964b0288328
24
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/d8dc806/appsignal-i686-linux-all-dynamic.tar.gz
23
+ checksum: 13b0871611d81a1f6af2b16f759aaee0fc9d53946e1716ad80ab31709e26dbcb
24
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-i686-linux-all-dynamic.tar.gz
25
25
  x86-linux:
26
26
  static:
27
- checksum: ac048bc96c05b4662d8959d2bb7c9028ba9a6fcd78f08cd284457dba8db4e0fc
28
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/d8dc806/appsignal-i686-linux-all-static.tar.gz
27
+ checksum: 5c4e33f0b64c5848a6e755d0e6d8876750d33dcf6f20a4161053ae9be6fd5322
28
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-i686-linux-all-static.tar.gz
29
29
  dynamic:
30
- checksum: 0ae2e52d86416a78a75632bef5c7f3d151d57ea76d45457a39926964b0288328
31
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/d8dc806/appsignal-i686-linux-all-dynamic.tar.gz
30
+ checksum: 13b0871611d81a1f6af2b16f759aaee0fc9d53946e1716ad80ab31709e26dbcb
31
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-i686-linux-all-dynamic.tar.gz
32
32
  i686-linux-musl:
33
33
  static:
34
- checksum: c61e68128fd8adc3f19917eb4c82a2cd4887f71c96fb5c20a281867841cc6020
35
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/d8dc806/appsignal-i686-linux-musl-all-static.tar.gz
34
+ checksum: b90655365fb23cc2f5c6a79056520f4b54004039bdcc286f384e41545ceba8ce
35
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-i686-linux-musl-all-static.tar.gz
36
36
  x86-linux-musl:
37
37
  static:
38
- checksum: c61e68128fd8adc3f19917eb4c82a2cd4887f71c96fb5c20a281867841cc6020
39
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/d8dc806/appsignal-i686-linux-musl-all-static.tar.gz
38
+ checksum: b90655365fb23cc2f5c6a79056520f4b54004039bdcc286f384e41545ceba8ce
39
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-i686-linux-musl-all-static.tar.gz
40
40
  x86_64-linux:
41
41
  static:
42
- checksum: 525349f02f3d089bbac237d79b50ec5a6b503354b26ec20638d4a15aae79c635
43
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/d8dc806/appsignal-x86_64-linux-all-static.tar.gz
42
+ checksum: 38681af7ddba4015f29c59dca210f0a71698ddb85f5f014239b0a2d400f9a55f
43
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-linux-all-static.tar.gz
44
44
  dynamic:
45
- checksum: 788cf409505c41af5284f6b6159b958438c7ce3675a338d73a2c3092b13d7532
46
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/d8dc806/appsignal-x86_64-linux-all-dynamic.tar.gz
45
+ checksum: b8e2eeccc1d0d49442480dc2484ccd09ef98eeebb6087b6a62a07198ea5745a1
46
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-linux-all-dynamic.tar.gz
47
47
  x86_64-linux-musl:
48
48
  static:
49
- checksum: 133f5f29f38e0d4bf946b8b7290b848efef580ab0f5480790db766653614b0cf
50
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/d8dc806/appsignal-x86_64-linux-musl-all-static.tar.gz
49
+ checksum: a0949cae6b52231033f035a60458081d32825b9c8bf7953c98b85581ee2f31bb
50
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-linux-musl-all-static.tar.gz
51
51
  dynamic:
52
- checksum: c2c59a186e462c6d9236094c4efad06866f3630a4e0929bc842e2e55fa12760a
53
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/d8dc806/appsignal-x86_64-linux-musl-all-dynamic.tar.gz
52
+ checksum: 3c32012d8eab7cdc6d320816ed1ef35f3fa3400ffe714205700e540f67a0e50b
53
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-linux-musl-all-dynamic.tar.gz
54
54
  x86_64-freebsd:
55
55
  static:
56
- checksum: b241082609ad39f26b16094f3f43b113c4eb45340e5b59adae2b365c605b9a8c
57
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/d8dc806/appsignal-x86_64-freebsd-all-static.tar.gz
56
+ checksum: ce04f0484def30697300c62b0a0fbdcd4fce34d553848a68775e8aa3d1e901c3
57
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-freebsd-all-static.tar.gz
58
58
  dynamic:
59
- checksum: e7256671ed27f3fd8f19c479a73c34d456adbee27da97e522dbb5bfe98ecf449
60
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/d8dc806/appsignal-x86_64-freebsd-all-dynamic.tar.gz
59
+ checksum: 4ca2de50ee31c21cf3b8f74515822175cc0b0fae070a8d01296e80149592e47b
60
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-freebsd-all-dynamic.tar.gz
61
61
  amd64-freebsd:
62
62
  static:
63
- checksum: b241082609ad39f26b16094f3f43b113c4eb45340e5b59adae2b365c605b9a8c
64
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/d8dc806/appsignal-x86_64-freebsd-all-static.tar.gz
63
+ checksum: ce04f0484def30697300c62b0a0fbdcd4fce34d553848a68775e8aa3d1e901c3
64
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-freebsd-all-static.tar.gz
65
65
  dynamic:
66
- checksum: e7256671ed27f3fd8f19c479a73c34d456adbee27da97e522dbb5bfe98ecf449
67
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/d8dc806/appsignal-x86_64-freebsd-all-dynamic.tar.gz
66
+ checksum: 4ca2de50ee31c21cf3b8f74515822175cc0b0fae070a8d01296e80149592e47b
67
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-freebsd-all-dynamic.tar.gz
@@ -1,5 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'rails', '~> 6.0.0.beta.1'
3
+ gem 'rails', '~> 6.0.0'
4
4
 
5
5
  gemspec :path => '../'
@@ -42,7 +42,7 @@ module Appsignal
42
42
 
43
43
  def install
44
44
  # Register the extension...
45
- if ::Sequel::MAJOR >= 4 && ::Sequel::MINOR >= 35
45
+ if (::Sequel::MAJOR >= 4 && ::Sequel::MINOR >= 35) || ::Sequel::MAJOR >= 5
46
46
  ::Sequel::Database.register_extension(
47
47
  :appsignal_integration,
48
48
  Appsignal::Hooks::SequelLogConnectionExtension
@@ -38,13 +38,29 @@ module Appsignal
38
38
  end
39
39
 
40
40
  def call
41
- stats = ::Sidekiq::Stats.new
41
+ track_redis_info
42
+ track_stats
43
+ track_queues
44
+ end
45
+
46
+ private
47
+
48
+ attr_reader :cache
49
+
50
+ def track_redis_info
51
+ return unless ::Sidekiq.respond_to?(:redis_info)
42
52
  redis_info = ::Sidekiq.redis_info
43
- gauge "worker_count", stats.workers_size
44
- gauge "process_count", stats.processes_size
53
+
45
54
  gauge "connection_count", redis_info.fetch("connected_clients")
46
55
  gauge "memory_usage", redis_info.fetch("used_memory")
47
56
  gauge "memory_usage_rss", redis_info.fetch("used_memory_rss")
57
+ end
58
+
59
+ def track_stats
60
+ stats = ::Sidekiq::Stats.new
61
+
62
+ gauge "worker_count", stats.workers_size
63
+ gauge "process_count", stats.processes_size
48
64
  gauge_delta :jobs_processed, "job_count", stats.processed,
49
65
  :status => :processed
50
66
  gauge_delta :jobs_failed, "job_count", stats.failed, :status => :failed
@@ -52,7 +68,9 @@ module Appsignal
52
68
  gauge_delta :jobs_dead, "job_count", stats.dead_size, :status => :died
53
69
  gauge "job_count", stats.scheduled_size, :status => :scheduled
54
70
  gauge "job_count", stats.enqueued, :status => :enqueued
71
+ end
55
72
 
73
+ def track_queues
56
74
  ::Sidekiq::Queue.all.each do |queue|
57
75
  gauge "queue_length", queue.size, :queue => queue.name
58
76
  # Convert latency from seconds to milliseconds
@@ -60,10 +78,6 @@ module Appsignal
60
78
  end
61
79
  end
62
80
 
63
- private
64
-
65
- attr_reader :cache
66
-
67
81
  # Track a gauge metric with the `sidekiq_` prefix
68
82
  def gauge(key, value, tags = {})
69
83
  tags[:hostname] = hostname if hostname
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Appsignal
4
- VERSION = "2.9.10".freeze
4
+ VERSION = "2.9.12".freeze
5
5
  end
@@ -732,6 +732,19 @@ describe Appsignal::Hooks::SidekiqProbe do
732
732
  probe.call
733
733
  end
734
734
 
735
+ context "when `redis_info` is not defined" do
736
+ before do
737
+ allow(Sidekiq).to receive(:respond_to?).with(:redis_info).and_return(false)
738
+ end
739
+
740
+ it "does not collect redis metrics" do
741
+ expect_gauge("connection_count", 2).never
742
+ expect_gauge("memory_usage", 1024).never
743
+ expect_gauge("memory_usage_rss", 512).never
744
+ probe.call
745
+ end
746
+ end
747
+
735
748
  context "when hostname is configured for probe" do
736
749
  let(:redis_hostname) { "my_redis_server" }
737
750
  let(:probe) { described_class.new(:hostname => redis_hostname) }
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.9.10
4
+ version: 2.9.12
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: 2019-07-08 00:00:00.000000000 Z
12
+ date: 2019-08-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
@@ -360,7 +360,12 @@ files:
360
360
  homepage: https://github.com/appsignal/appsignal-ruby
361
361
  licenses:
362
362
  - MIT
363
- metadata: {}
363
+ metadata:
364
+ bug_tracker_uri: https://github.com/appsignal/appsignal-ruby/issues
365
+ changelog_uri: https://github.com/appsignal/appsignal-ruby/blob/master/CHANGELOG.md
366
+ documentation_uri: https://docs.appsignal.com/ruby/
367
+ homepage_uri: https://docs.appsignal.com/ruby/
368
+ source_code_uri: https://github.com/appsignal/appsignal-ruby
364
369
  post_install_message:
365
370
  rdoc_options: []
366
371
  require_paths: