appsignal 2.9.13 → 2.9.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +19 -16
- data/CHANGELOG.md +8 -0
- data/build_matrix.yml +8 -4
- data/ext/Rakefile +2 -3
- data/ext/agent.yml +40 -37
- data/ext/base.rb +33 -10
- data/ext/extconf.rb +2 -3
- data/gemfiles/que_beta.gemfile +10 -0
- data/lib/appsignal/helpers/instrumentation.rb +0 -1
- data/lib/appsignal/helpers/metrics.rb +0 -1
- data/lib/appsignal/integrations/que.rb +9 -8
- data/lib/appsignal/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6281fec5ada74af12c64d1c4b057579d1a18e46c6097d27b6b44ac60efb7ee16
|
4
|
+
data.tar.gz: '0906ccc97e85417d16513e10e37def67d80af455ab7011cfb8f0238e7d297192'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 030215df01d6853fcdc4f321a4e5b70b0bb6594ae583d522a77a5c326f5e9e13f6e6b92c2f108e04d34c8acd2e652a814259e11f7e17e96415bd236dde15ef07
|
7
|
+
data.tar.gz: 5fa6c245fbbea9402cb706a4c2c81a36a59c2d2112966d027affc13de73671c64b38301db0daa30556a98c4087af8340c41a777935ea2d75661b2a97eec0c75e
|
data/.travis.yml
CHANGED
@@ -30,7 +30,7 @@ after_failure:
|
|
30
30
|
matrix:
|
31
31
|
fast_finish: true
|
32
32
|
include:
|
33
|
-
- rvm: 2.6.
|
33
|
+
- rvm: 2.6.4
|
34
34
|
gemfile: gemfiles/no_dependencies.gemfile
|
35
35
|
before_script: ''
|
36
36
|
script:
|
@@ -93,49 +93,52 @@ matrix:
|
|
93
93
|
- rvm: 2.5.3
|
94
94
|
gemfile: gemfiles/rails-5.2.gemfile
|
95
95
|
env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
|
96
|
-
- rvm: 2.6.
|
96
|
+
- rvm: 2.6.4
|
97
97
|
gemfile: gemfiles/no_dependencies.gemfile
|
98
98
|
env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
|
99
|
-
- rvm: 2.6.
|
99
|
+
- rvm: 2.6.4
|
100
100
|
gemfile: gemfiles/capistrano2.gemfile
|
101
101
|
env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
|
102
|
-
- rvm: 2.6.
|
102
|
+
- rvm: 2.6.4
|
103
103
|
gemfile: gemfiles/capistrano3.gemfile
|
104
104
|
env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
|
105
|
-
- rvm: 2.6.
|
105
|
+
- rvm: 2.6.4
|
106
106
|
gemfile: gemfiles/grape.gemfile
|
107
107
|
env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
|
108
|
-
- rvm: 2.6.
|
108
|
+
- rvm: 2.6.4
|
109
109
|
gemfile: gemfiles/padrino.gemfile
|
110
110
|
env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=1.17.3
|
111
|
-
- rvm: 2.6.
|
111
|
+
- rvm: 2.6.4
|
112
112
|
gemfile: gemfiles/que.gemfile
|
113
113
|
env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
|
114
|
-
- rvm: 2.6.
|
114
|
+
- rvm: 2.6.4
|
115
|
+
gemfile: gemfiles/que_beta.gemfile
|
116
|
+
env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
|
117
|
+
- rvm: 2.6.4
|
115
118
|
gemfile: gemfiles/rails-5.0.gemfile
|
116
119
|
env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
|
117
|
-
- rvm: 2.6.
|
120
|
+
- rvm: 2.6.4
|
118
121
|
gemfile: gemfiles/rails-5.1.gemfile
|
119
122
|
env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
|
120
|
-
- rvm: 2.6.
|
123
|
+
- rvm: 2.6.4
|
121
124
|
gemfile: gemfiles/rails-5.2.gemfile
|
122
125
|
env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
|
123
|
-
- rvm: 2.6.
|
126
|
+
- rvm: 2.6.4
|
124
127
|
gemfile: gemfiles/rails-6.0.gemfile
|
125
128
|
env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
|
126
|
-
- rvm: 2.6.
|
129
|
+
- rvm: 2.6.4
|
127
130
|
gemfile: gemfiles/resque.gemfile
|
128
131
|
env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=1.17.3
|
129
|
-
- rvm: 2.6.
|
132
|
+
- rvm: 2.6.4
|
130
133
|
gemfile: gemfiles/sequel.gemfile
|
131
134
|
env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
|
132
|
-
- rvm: 2.6.
|
135
|
+
- rvm: 2.6.4
|
133
136
|
gemfile: gemfiles/sequel-435.gemfile
|
134
137
|
env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
|
135
|
-
- rvm: 2.6.
|
138
|
+
- rvm: 2.6.4
|
136
139
|
gemfile: gemfiles/sinatra.gemfile
|
137
140
|
env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
|
138
|
-
- rvm: 2.6.
|
141
|
+
- rvm: 2.6.4
|
139
142
|
gemfile: gemfiles/webmachine.gemfile
|
140
143
|
env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
|
141
144
|
- rvm: jruby-19mode
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 2.9.15
|
4
|
+
- Bump agent to v-690f4b8 - commit cf4f3787395c8524079f3bed3b2c2367296482a9
|
5
|
+
- Validate transmission_interval option.
|
6
|
+
|
7
|
+
## 2.9.14
|
8
|
+
- Support mirrors when downloading the agent & extension. PR #558
|
9
|
+
- Support Que's upcoming 1.0.0 release. PR #557
|
10
|
+
|
3
11
|
## 2.9.13
|
4
12
|
- Bump agent to v-e1c9363
|
5
13
|
- Detect revision from Heroku dynos automatically when Dyno Metadata is
|
data/build_matrix.yml
CHANGED
@@ -31,7 +31,7 @@ travis: # Default `.travis.yml` contents
|
|
31
31
|
matrix:
|
32
32
|
fast_finish: true
|
33
33
|
include: # Builds based on the matrix below are added to this list
|
34
|
-
- rvm: "2.6.
|
34
|
+
- rvm: "2.6.4"
|
35
35
|
gemfile: "gemfiles/no_dependencies.gemfile"
|
36
36
|
before_script: "" # Unset default: No need to install the extension
|
37
37
|
script:
|
@@ -65,7 +65,7 @@ matrix:
|
|
65
65
|
gems: "none"
|
66
66
|
- ruby: "2.5.3"
|
67
67
|
gems: "minimal"
|
68
|
-
- ruby: "2.6.
|
68
|
+
- ruby: "2.6.4"
|
69
69
|
- ruby: "jruby-19mode"
|
70
70
|
gems: "minimal"
|
71
71
|
gems:
|
@@ -76,16 +76,20 @@ matrix:
|
|
76
76
|
- gem: "padrino"
|
77
77
|
bundler: "1.17.3"
|
78
78
|
- gem: "que"
|
79
|
+
- gem: "que_beta"
|
80
|
+
exclude:
|
81
|
+
ruby:
|
82
|
+
- "2.0.0"
|
79
83
|
- gem: "rails-3.2"
|
80
84
|
bundler: "1.17.3"
|
81
85
|
exclude:
|
82
86
|
ruby:
|
83
|
-
- "2.6.
|
87
|
+
- "2.6.4"
|
84
88
|
- gem: "rails-4.2"
|
85
89
|
bundler: "1.17.3"
|
86
90
|
exclude:
|
87
91
|
ruby:
|
88
|
-
- "2.6.
|
92
|
+
- "2.6.4"
|
89
93
|
- gem: "rails-5.0"
|
90
94
|
exclude:
|
91
95
|
ruby:
|
data/ext/Rakefile
CHANGED
@@ -15,14 +15,13 @@ task :default do
|
|
15
15
|
report["language"]["implementation"] = "jruby"
|
16
16
|
report["build"]["library_type"] = library_type
|
17
17
|
next unless check_architecture
|
18
|
-
arch_config = AGENT_CONFIG["triples"][ARCH]
|
19
18
|
|
20
19
|
if local_build?
|
21
20
|
report["build"]["source"] = "local"
|
22
21
|
else
|
23
|
-
archive = download_archive(
|
22
|
+
archive = download_archive(library_type)
|
24
23
|
next unless archive
|
25
|
-
next unless verify_archive(archive,
|
24
|
+
next unless verify_archive(archive, library_type)
|
26
25
|
unarchive(archive)
|
27
26
|
end
|
28
27
|
successful_installation
|
data/ext/agent.yml
CHANGED
@@ -1,67 +1,70 @@
|
|
1
1
|
---
|
2
|
-
version:
|
2
|
+
version: 690f4b8
|
3
|
+
mirrors:
|
4
|
+
- https://appsignal-agent-releases.global.ssl.fastly.net
|
5
|
+
- https://d135dj0rjqvssy.cloudfront.net
|
3
6
|
triples:
|
4
7
|
x86_64-darwin:
|
5
8
|
static:
|
6
|
-
checksum:
|
7
|
-
|
9
|
+
checksum: f6dbba7d0dbb65a4eab62fbfeb28ef05812309695519f0207b2240659e656ae4
|
10
|
+
filename: appsignal-x86_64-darwin-all-static.tar.gz
|
8
11
|
dynamic:
|
9
|
-
checksum:
|
10
|
-
|
12
|
+
checksum: a18e6c9b21141bc97699df66e7c06261118e8130d2bdd43568e415b46836cb28
|
13
|
+
filename: appsignal-x86_64-darwin-all-dynamic.tar.gz
|
11
14
|
universal-darwin:
|
12
15
|
static:
|
13
|
-
checksum:
|
14
|
-
|
16
|
+
checksum: f6dbba7d0dbb65a4eab62fbfeb28ef05812309695519f0207b2240659e656ae4
|
17
|
+
filename: appsignal-x86_64-darwin-all-static.tar.gz
|
15
18
|
dynamic:
|
16
|
-
checksum:
|
17
|
-
|
19
|
+
checksum: a18e6c9b21141bc97699df66e7c06261118e8130d2bdd43568e415b46836cb28
|
20
|
+
filename: appsignal-x86_64-darwin-all-dynamic.tar.gz
|
18
21
|
i686-linux:
|
19
22
|
static:
|
20
|
-
checksum:
|
21
|
-
|
23
|
+
checksum: 28cb5a7d1123b9ee3e27dec8d2f4252326cd80bba7c2c976790e9e4ac018e4a7
|
24
|
+
filename: appsignal-i686-linux-all-static.tar.gz
|
22
25
|
dynamic:
|
23
|
-
checksum:
|
24
|
-
|
26
|
+
checksum: 0c361cb5b06aa8489c345c74c842ab99432afa224260c99521c68e826eb00da7
|
27
|
+
filename: appsignal-i686-linux-all-dynamic.tar.gz
|
25
28
|
x86-linux:
|
26
29
|
static:
|
27
|
-
checksum:
|
28
|
-
|
30
|
+
checksum: 28cb5a7d1123b9ee3e27dec8d2f4252326cd80bba7c2c976790e9e4ac018e4a7
|
31
|
+
filename: appsignal-i686-linux-all-static.tar.gz
|
29
32
|
dynamic:
|
30
|
-
checksum:
|
31
|
-
|
33
|
+
checksum: 0c361cb5b06aa8489c345c74c842ab99432afa224260c99521c68e826eb00da7
|
34
|
+
filename: appsignal-i686-linux-all-dynamic.tar.gz
|
32
35
|
i686-linux-musl:
|
33
36
|
static:
|
34
|
-
checksum:
|
35
|
-
|
37
|
+
checksum: 712a91ebbfe0fac628d6bb40bd064f2f85af4055f5d2d69aa6d64be961da3616
|
38
|
+
filename: appsignal-i686-linux-musl-all-static.tar.gz
|
36
39
|
x86-linux-musl:
|
37
40
|
static:
|
38
|
-
checksum:
|
39
|
-
|
41
|
+
checksum: 712a91ebbfe0fac628d6bb40bd064f2f85af4055f5d2d69aa6d64be961da3616
|
42
|
+
filename: appsignal-i686-linux-musl-all-static.tar.gz
|
40
43
|
x86_64-linux:
|
41
44
|
static:
|
42
|
-
checksum:
|
43
|
-
|
45
|
+
checksum: c6622328708431e5286bf939a6c21b63290572e50cf5324717da0e6f89fcf565
|
46
|
+
filename: appsignal-x86_64-linux-all-static.tar.gz
|
44
47
|
dynamic:
|
45
|
-
checksum:
|
46
|
-
|
48
|
+
checksum: 7329f923eef9e695f2a7690adde3bb4ad43d95a45b177bf3f3c84fe17dabcd32
|
49
|
+
filename: appsignal-x86_64-linux-all-dynamic.tar.gz
|
47
50
|
x86_64-linux-musl:
|
48
51
|
static:
|
49
|
-
checksum:
|
50
|
-
|
52
|
+
checksum: 7f42fc3f714fbab0bcc3e915cc173b18c7f07f3e47687b2bded94d907534e3cc
|
53
|
+
filename: appsignal-x86_64-linux-musl-all-static.tar.gz
|
51
54
|
dynamic:
|
52
|
-
checksum:
|
53
|
-
|
55
|
+
checksum: 189888ce2cf1b91c3334434bfe5a6f28f653b8d9b8e9291d16fc36383e3053b8
|
56
|
+
filename: appsignal-x86_64-linux-musl-all-dynamic.tar.gz
|
54
57
|
x86_64-freebsd:
|
55
58
|
static:
|
56
|
-
checksum:
|
57
|
-
|
59
|
+
checksum: f06d8c5bc05a2c58e2ac88027dba8c3fef3bc9a698a68500143912f02da0f8d3
|
60
|
+
filename: appsignal-x86_64-freebsd-all-static.tar.gz
|
58
61
|
dynamic:
|
59
|
-
checksum:
|
60
|
-
|
62
|
+
checksum: 469741be25df8f3685cc32ade106f41588224b65fb11846b0176a6dec6274775
|
63
|
+
filename: appsignal-x86_64-freebsd-all-dynamic.tar.gz
|
61
64
|
amd64-freebsd:
|
62
65
|
static:
|
63
|
-
checksum:
|
64
|
-
|
66
|
+
checksum: f06d8c5bc05a2c58e2ac88027dba8c3fef3bc9a698a68500143912f02da0f8d3
|
67
|
+
filename: appsignal-x86_64-freebsd-all-static.tar.gz
|
65
68
|
dynamic:
|
66
|
-
checksum:
|
67
|
-
|
69
|
+
checksum: 469741be25df8f3685cc32ade106f41588224b65fb11846b0176a6dec6274775
|
70
|
+
filename: appsignal-x86_64-freebsd-all-dynamic.tar.gz
|
data/ext/base.rb
CHANGED
@@ -12,6 +12,7 @@ AGENT_CONFIG = YAML.load(File.read(File.join(EXT_PATH, "agent.yml"))).freeze
|
|
12
12
|
|
13
13
|
AGENT_PLATFORM = Appsignal::System.agent_platform
|
14
14
|
ARCH = "#{RbConfig::CONFIG["host_cpu"]}-#{AGENT_PLATFORM}".freeze
|
15
|
+
ARCH_CONFIG = AGENT_CONFIG["triples"][ARCH].freeze
|
15
16
|
CA_CERT_PATH = File.join(EXT_PATH, "../resources/cacert.pem").freeze
|
16
17
|
|
17
18
|
def ext_path(path)
|
@@ -102,31 +103,53 @@ def check_architecture
|
|
102
103
|
end
|
103
104
|
end
|
104
105
|
|
105
|
-
def download_archive(
|
106
|
+
def download_archive(type)
|
106
107
|
report["build"]["source"] = "remote"
|
107
|
-
|
108
|
-
|
109
|
-
report["download"]["download_url"] = download_url
|
110
|
-
open(download_url, :ssl_ca_cert => CA_CERT_PATH)
|
111
|
-
else
|
108
|
+
|
109
|
+
unless ARCH_CONFIG.key?(type)
|
112
110
|
abort_installation(
|
113
111
|
"AppSignal currently does not support your system. " \
|
114
|
-
"Expected config for architecture '#{
|
112
|
+
"Expected config for architecture '#{arch}' and package type '#{type}', but none found. " \
|
115
113
|
"For a full list of supported systems visit: " \
|
116
114
|
"https://docs.appsignal.com/support/operating-systems.html"
|
117
115
|
)
|
116
|
+
return
|
118
117
|
end
|
118
|
+
|
119
|
+
version = AGENT_CONFIG["version"]
|
120
|
+
filename = ARCH_CONFIG[type]["filename"]
|
121
|
+
attempted_mirror_urls = []
|
122
|
+
|
123
|
+
AGENT_CONFIG["mirrors"].each do |mirror|
|
124
|
+
download_url = [mirror, version, filename].join("/")
|
125
|
+
attempted_mirror_urls << download_url
|
126
|
+
report["download"]["download_url"] = download_url
|
127
|
+
|
128
|
+
begin
|
129
|
+
return open(download_url, :ssl_ca_cert => CA_CERT_PATH)
|
130
|
+
rescue
|
131
|
+
next
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
attempted_mirror_urls_mapped = attempted_mirror_urls.map { |mirror| "- #{mirror}" }
|
136
|
+
abort_installation(
|
137
|
+
"Could not download archive from any of our mirrors. " \
|
138
|
+
"Attempted to download the archive from the following urls:\n" \
|
139
|
+
"#{attempted_mirror_urls_mapped.join("\n")}\n" \
|
140
|
+
"Please make sure your network allows access to any of these mirrors."
|
141
|
+
)
|
119
142
|
end
|
120
143
|
|
121
|
-
def verify_archive(archive,
|
122
|
-
if Digest::SHA256.hexdigest(archive.read) ==
|
144
|
+
def verify_archive(archive, type)
|
145
|
+
if Digest::SHA256.hexdigest(archive.read) == ARCH_CONFIG[type]["checksum"]
|
123
146
|
report["download"]["checksum"] = "verified"
|
124
147
|
true
|
125
148
|
else
|
126
149
|
report["download"]["checksum"] = "invalid"
|
127
150
|
abort_installation(
|
128
151
|
"Checksum of downloaded archive could not be verified: " \
|
129
|
-
"Expected '#{
|
152
|
+
"Expected '#{ARCH_CONFIG[type]["checksum"]}', got '#{checksum}'."
|
130
153
|
)
|
131
154
|
end
|
132
155
|
end
|
data/ext/extconf.rb
CHANGED
@@ -11,14 +11,13 @@ def install
|
|
11
11
|
report["language"]["implementation"] = "ruby"
|
12
12
|
report["build"]["library_type"] = library_type
|
13
13
|
return unless check_architecture
|
14
|
-
arch_config = AGENT_CONFIG["triples"][ARCH]
|
15
14
|
|
16
15
|
if local_build?
|
17
16
|
report["build"]["source"] = "local"
|
18
17
|
else
|
19
|
-
archive = download_archive(
|
18
|
+
archive = download_archive(library_type)
|
20
19
|
return unless archive
|
21
|
-
return unless verify_archive(archive,
|
20
|
+
return unless verify_archive(archive, library_type)
|
22
21
|
unarchive(archive)
|
23
22
|
end
|
24
23
|
|
@@ -5,16 +5,17 @@ module Appsignal
|
|
5
5
|
module QuePlugin
|
6
6
|
def self.included(base)
|
7
7
|
base.class_eval do
|
8
|
-
def _run_with_appsignal
|
8
|
+
def _run_with_appsignal(*)
|
9
|
+
local_attrs = respond_to?(:que_attrs) ? que_attrs : attrs
|
9
10
|
env = {
|
10
11
|
:metadata => {
|
11
|
-
:id =>
|
12
|
-
:queue =>
|
13
|
-
:run_at =>
|
14
|
-
:priority =>
|
15
|
-
:attempts =>
|
12
|
+
:id => local_attrs[:job_id] || local_attrs[:id],
|
13
|
+
:queue => local_attrs[:queue],
|
14
|
+
:run_at => local_attrs[:run_at].to_s,
|
15
|
+
:priority => local_attrs[:priority],
|
16
|
+
:attempts => local_attrs[:error_count].to_i
|
16
17
|
},
|
17
|
-
:params =>
|
18
|
+
:params => local_attrs[:args]
|
18
19
|
}
|
19
20
|
|
20
21
|
request = Appsignal::Transaction::GenericRequest.new(env)
|
@@ -31,7 +32,7 @@ module Appsignal
|
|
31
32
|
transaction.set_error(error)
|
32
33
|
raise error
|
33
34
|
ensure
|
34
|
-
transaction.set_action "#{
|
35
|
+
transaction.set_action "#{local_attrs[:job_class]}#run"
|
35
36
|
Appsignal::Transaction.complete_current!
|
36
37
|
end
|
37
38
|
end
|
data/lib/appsignal/version.rb
CHANGED
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.
|
4
|
+
version: 2.9.15
|
5
5
|
platform: ruby
|
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: 2019-09-
|
13
|
+
date: 2019-09-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rack
|
@@ -163,6 +163,7 @@ files:
|
|
163
163
|
- gemfiles/no_dependencies.gemfile
|
164
164
|
- gemfiles/padrino.gemfile
|
165
165
|
- gemfiles/que.gemfile
|
166
|
+
- gemfiles/que_beta.gemfile
|
166
167
|
- gemfiles/rails-3.2.gemfile
|
167
168
|
- gemfiles/rails-4.0.gemfile
|
168
169
|
- gemfiles/rails-4.1.gemfile
|