skylight 5.1.1 → 5.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -1
- data/ERRORS.md +3 -0
- data/ext/extconf.rb +24 -8
- data/ext/libskylight.yml +8 -10
- data/ext/skylight_native.c +2 -0
- data/lib/skylight/cli/doctor.rb +2 -2
- data/lib/skylight/config.rb +42 -38
- data/lib/skylight/data/cacert.pem +730 -1023
- data/lib/skylight/errors.rb +3 -0
- data/lib/skylight/extensions/source_location.rb +2 -2
- data/lib/skylight/instrumenter.rb +1 -1
- data/lib/skylight/middleware.rb +16 -3
- data/lib/skylight/native.rb +3 -3
- data/lib/skylight/normalizers/active_job/perform.rb +22 -25
- data/lib/skylight/normalizers/active_record/sql.rb +8 -0
- data/lib/skylight/normalizers/grape/endpoint.rb +1 -1
- data/lib/skylight/normalizers/sql.rb +5 -9
- data/lib/skylight/probes/active_record_async.rb +96 -0
- data/lib/skylight/probes/elasticsearch.rb +10 -1
- data/lib/skylight/probes/middleware.rb +2 -2
- data/lib/skylight/probes/mongo.rb +14 -1
- data/lib/skylight/probes/mongoid.rb +6 -13
- data/lib/skylight/probes/rack_builder.rb +37 -0
- data/lib/skylight/probes/sinatra_add_middleware.rb +2 -2
- data/lib/skylight/probes.rb +8 -9
- data/lib/skylight/railtie.rb +12 -4
- data/lib/skylight/sidekiq.rb +1 -1
- data/lib/skylight/sinatra.rb +1 -1
- data/lib/skylight/subscriber.rb +24 -2
- data/lib/skylight/test.rb +1 -5
- data/lib/skylight/user_config.rb +4 -2
- data/lib/skylight/util/clock.rb +1 -1
- data/lib/skylight/util/deploy.rb +4 -4
- data/lib/skylight/util/platform.rb +3 -3
- data/lib/skylight/version.rb +1 -1
- metadata +10 -7
data/lib/skylight/util/deploy.rb
CHANGED
@@ -52,15 +52,15 @@ module Skylight
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def id
|
55
|
-
config.get(:
|
55
|
+
config.get(:"deploy.id") || git_sha
|
56
56
|
end
|
57
57
|
|
58
58
|
def git_sha
|
59
|
-
config.get(:
|
59
|
+
config.get(:"deploy.git_sha")
|
60
60
|
end
|
61
61
|
|
62
62
|
def description
|
63
|
-
config.get(:
|
63
|
+
config.get(:"deploy.description")
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
@@ -85,7 +85,7 @@ module Skylight
|
|
85
85
|
private
|
86
86
|
|
87
87
|
def get_info
|
88
|
-
info_path = config[:
|
88
|
+
info_path = config[:"heroku.dyno_info_path"]
|
89
89
|
|
90
90
|
if File.exist?(info_path) && (info = JSON.parse(File.read(info_path)))
|
91
91
|
info["release"]
|
@@ -12,7 +12,7 @@ module Skylight
|
|
12
12
|
# Ruby doesn't know that it's on a musl-based platform. `ldd` is the
|
13
13
|
# only reliable way to detect musl that we've found.
|
14
14
|
# See https://github.com/skylightio/skylight-ruby/issues/92
|
15
|
-
ENV
|
15
|
+
ENV.fetch("SKYLIGHT_MUSL") { `ldd --version 2>&1` =~ /musl/ } ? "linux-musl" : "linux"
|
16
16
|
when /darwin/
|
17
17
|
"darwin"
|
18
18
|
when /freebsd/
|
@@ -38,8 +38,8 @@ module Skylight
|
|
38
38
|
"x86"
|
39
39
|
when /ppc|powerpc/
|
40
40
|
"powerpc"
|
41
|
-
when
|
42
|
-
"
|
41
|
+
when /arm64|aarch64/
|
42
|
+
"aarch64"
|
43
43
|
else
|
44
44
|
cpu
|
45
45
|
end
|
data/lib/skylight/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skylight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tilde, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
103
|
+
version: 1.2.0
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.
|
110
|
+
version: 1.2.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rspec
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 1.
|
145
|
+
version: 1.31.0
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 1.
|
152
|
+
version: 1.31.0
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: simplecov
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -285,6 +285,7 @@ files:
|
|
285
285
|
- lib/skylight/probes/active_job.rb
|
286
286
|
- lib/skylight/probes/active_job_enqueue.rb
|
287
287
|
- lib/skylight/probes/active_model_serializers.rb
|
288
|
+
- lib/skylight/probes/active_record_async.rb
|
288
289
|
- lib/skylight/probes/delayed_job.rb
|
289
290
|
- lib/skylight/probes/elasticsearch.rb
|
290
291
|
- lib/skylight/probes/excon.rb
|
@@ -296,6 +297,7 @@ files:
|
|
296
297
|
- lib/skylight/probes/mongo.rb
|
297
298
|
- lib/skylight/probes/mongoid.rb
|
298
299
|
- lib/skylight/probes/net_http.rb
|
300
|
+
- lib/skylight/probes/rack_builder.rb
|
299
301
|
- lib/skylight/probes/redis.rb
|
300
302
|
- lib/skylight/probes/sequel.rb
|
301
303
|
- lib/skylight/probes/sinatra.rb
|
@@ -366,7 +368,8 @@ files:
|
|
366
368
|
homepage: https://www.skylight.io
|
367
369
|
licenses:
|
368
370
|
- Nonstandard
|
369
|
-
metadata:
|
371
|
+
metadata:
|
372
|
+
rubygems_mfa_required: 'true'
|
370
373
|
post_install_message:
|
371
374
|
rdoc_options: []
|
372
375
|
require_paths:
|