appsignal 2.9.13-java → 2.9.14-java
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 +4 -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: b3ed7d56efdb2146e5dd0b8e6aba68dcf557ad1ad27ddd1648a5ebeee292d0b9
|
4
|
+
data.tar.gz: c735b260db329a7f90571ded2da4c746b5c6726436854a07558955f9cd9adac9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b74bce10bf61e7fa3b4e3543cd47687ec31f8ff6d88c92751e2f6df99709390eedfd09950e67b09b2597de8ceba0537dab08b907251c864d23d2892e9d936455
|
7
|
+
data.tar.gz: 0b222c1f400beff619374f65d2ae17389ecf8d71d5bd3a8f976a4ecc12baed1063d3ba8748eb7ac87ba10975157de93ee1100247c503aafc05eb9238cd20d0a2
|
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
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: d8dc806
|
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: a2cc43f4fd296a6a3db06096030185c7cfbdde701b19c1580b44ee5c1bdbef95
|
10
|
+
filename: appsignal-x86_64-darwin-all-static.tar.gz
|
8
11
|
dynamic:
|
9
|
-
checksum:
|
10
|
-
|
12
|
+
checksum: 77e4bb01a260e7daf798388a44e54ec1950a880563858a1b323eb9eb0426c790
|
13
|
+
filename: appsignal-x86_64-darwin-all-dynamic.tar.gz
|
11
14
|
universal-darwin:
|
12
15
|
static:
|
13
|
-
checksum:
|
14
|
-
|
16
|
+
checksum: a2cc43f4fd296a6a3db06096030185c7cfbdde701b19c1580b44ee5c1bdbef95
|
17
|
+
filename: appsignal-x86_64-darwin-all-static.tar.gz
|
15
18
|
dynamic:
|
16
|
-
checksum:
|
17
|
-
|
19
|
+
checksum: 77e4bb01a260e7daf798388a44e54ec1950a880563858a1b323eb9eb0426c790
|
20
|
+
filename: appsignal-x86_64-darwin-all-dynamic.tar.gz
|
18
21
|
i686-linux:
|
19
22
|
static:
|
20
|
-
checksum:
|
21
|
-
|
23
|
+
checksum: ac048bc96c05b4662d8959d2bb7c9028ba9a6fcd78f08cd284457dba8db4e0fc
|
24
|
+
filename: appsignal-i686-linux-all-static.tar.gz
|
22
25
|
dynamic:
|
23
|
-
checksum:
|
24
|
-
|
26
|
+
checksum: 0ae2e52d86416a78a75632bef5c7f3d151d57ea76d45457a39926964b0288328
|
27
|
+
filename: appsignal-i686-linux-all-dynamic.tar.gz
|
25
28
|
x86-linux:
|
26
29
|
static:
|
27
|
-
checksum:
|
28
|
-
|
30
|
+
checksum: ac048bc96c05b4662d8959d2bb7c9028ba9a6fcd78f08cd284457dba8db4e0fc
|
31
|
+
filename: appsignal-i686-linux-all-static.tar.gz
|
29
32
|
dynamic:
|
30
|
-
checksum:
|
31
|
-
|
33
|
+
checksum: 0ae2e52d86416a78a75632bef5c7f3d151d57ea76d45457a39926964b0288328
|
34
|
+
filename: appsignal-i686-linux-all-dynamic.tar.gz
|
32
35
|
i686-linux-musl:
|
33
36
|
static:
|
34
|
-
checksum:
|
35
|
-
|
37
|
+
checksum: c61e68128fd8adc3f19917eb4c82a2cd4887f71c96fb5c20a281867841cc6020
|
38
|
+
filename: appsignal-i686-linux-musl-all-static.tar.gz
|
36
39
|
x86-linux-musl:
|
37
40
|
static:
|
38
|
-
checksum:
|
39
|
-
|
41
|
+
checksum: c61e68128fd8adc3f19917eb4c82a2cd4887f71c96fb5c20a281867841cc6020
|
42
|
+
filename: appsignal-i686-linux-musl-all-static.tar.gz
|
40
43
|
x86_64-linux:
|
41
44
|
static:
|
42
|
-
checksum:
|
43
|
-
|
45
|
+
checksum: 525349f02f3d089bbac237d79b50ec5a6b503354b26ec20638d4a15aae79c635
|
46
|
+
filename: appsignal-x86_64-linux-all-static.tar.gz
|
44
47
|
dynamic:
|
45
|
-
checksum:
|
46
|
-
|
48
|
+
checksum: 788cf409505c41af5284f6b6159b958438c7ce3675a338d73a2c3092b13d7532
|
49
|
+
filename: appsignal-x86_64-linux-all-dynamic.tar.gz
|
47
50
|
x86_64-linux-musl:
|
48
51
|
static:
|
49
|
-
checksum:
|
50
|
-
|
52
|
+
checksum: 133f5f29f38e0d4bf946b8b7290b848efef580ab0f5480790db766653614b0cf
|
53
|
+
filename: appsignal-x86_64-linux-musl-all-static.tar.gz
|
51
54
|
dynamic:
|
52
|
-
checksum:
|
53
|
-
|
55
|
+
checksum: c2c59a186e462c6d9236094c4efad06866f3630a4e0929bc842e2e55fa12760a
|
56
|
+
filename: appsignal-x86_64-linux-musl-all-dynamic.tar.gz
|
54
57
|
x86_64-freebsd:
|
55
58
|
static:
|
56
|
-
checksum:
|
57
|
-
|
59
|
+
checksum: b241082609ad39f26b16094f3f43b113c4eb45340e5b59adae2b365c605b9a8c
|
60
|
+
filename: appsignal-x86_64-freebsd-all-static.tar.gz
|
58
61
|
dynamic:
|
59
|
-
checksum:
|
60
|
-
|
62
|
+
checksum: e7256671ed27f3fd8f19c479a73c34d456adbee27da97e522dbb5bfe98ecf449
|
63
|
+
filename: appsignal-x86_64-freebsd-all-dynamic.tar.gz
|
61
64
|
amd64-freebsd:
|
62
65
|
static:
|
63
|
-
checksum:
|
64
|
-
|
66
|
+
checksum: b241082609ad39f26b16094f3f43b113c4eb45340e5b59adae2b365c605b9a8c
|
67
|
+
filename: appsignal-x86_64-freebsd-all-static.tar.gz
|
65
68
|
dynamic:
|
66
|
-
checksum:
|
67
|
-
|
69
|
+
checksum: e7256671ed27f3fd8f19c479a73c34d456adbee27da97e522dbb5bfe98ecf449
|
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.14
|
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: 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
|
@@ -177,6 +177,7 @@ files:
|
|
177
177
|
- gemfiles/no_dependencies.gemfile
|
178
178
|
- gemfiles/padrino.gemfile
|
179
179
|
- gemfiles/que.gemfile
|
180
|
+
- gemfiles/que_beta.gemfile
|
180
181
|
- gemfiles/rails-3.2.gemfile
|
181
182
|
- gemfiles/rails-4.0.gemfile
|
182
183
|
- gemfiles/rails-4.1.gemfile
|