skylight 5.0.1 → 5.1.0.beta

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: 76c9ece1445d480897ecc306024fe939dacb94c14a02e68f7e33f5d722955284
4
- data.tar.gz: 839b19ed8b3846003b3a54e5d0f3e327b0f969f2672b267dcaf4d1aa27df6254
3
+ metadata.gz: 818b5bba3a23f9c4f7a500ded64f762b5668297637909031990a6c5796ddc47d
4
+ data.tar.gz: ef0978c64b52908ced68a488e2df81deb90c296e98343e5dd3cb9753077c0420
5
5
  SHA512:
6
- metadata.gz: 2cbbcfd4a159b6abfa976f9d8ad4a87317973955d058408b681b1564d6d54bacadcb0e60c4bbac9ea03383dfed6d9355ac953a0b636c50a60ff99e52bcb3c5a2
7
- data.tar.gz: b338f0d0a22d0b904600d050f217758d3b07c28e66c88c6f5eb961cd8701750b58a7175e3e9e31dad604c6c58c2d1b22197517c239192f41b9579c5c08a9ca5b
6
+ metadata.gz: 3a2d763e05629403025d99ff3ae61c845aaf410ba8081a0711ecc57de4d45c830b010ec41963834ee87630a88e09823e5ef03b07451f0e5ba53be6e2c0fb32d3
7
+ data.tar.gz: 2621fad8395b383e927cbc84c695b5cd253f92b079f94bb2bde7e1f5b7f23e90ad55b23119958ab1b5edf1e2de6713db938441ae0bcbedafa1c8859aa23c232b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## 5.1.0 (April 26 2021)
2
+ * [FEATURE] Add experimental tcp-based `skylightd` (may be enabled with `SKYLIGHT_ENABLE_TCP=true`)
3
+
4
+ * [IMPROVEMENT] Support aarch64-darwin targets (Apple M1)
5
+ * [IMPROVEMENT] Support aarch64-linux-gnu targets
6
+ * [IMPROVEMENT] Support aarch64-linux-musl targets
7
+
8
+ * [BREAKING] Remove `SKYLIGHT_SSL_CERT_DIR` config
9
+ * [BREAKING] Drop support for Ruby 2.5
10
+
1
11
  ## 5.0.1 (March 11, 2021)
2
12
  * [IMPROVEMENT] Use argument-forwarding (...) where available in custom instrumentation
3
13
 
@@ -21,11 +31,11 @@
21
31
  * [IMPROVEMENT] Better logging config. `SKYLIGHT_NATIVE_LOG_LEVEL` now defaults to `warn`.
22
32
 
23
33
  * [BREAKING] Rename `environment` keyword argument to `priority_key`. Note `env` has not changed.
24
- * [BREAKING] Drop support for Ruby 2.4
25
34
  * [BREAKING] Merge skylight-core into skylight. All classes previously namespaced under `Skylight::Core` have been moved to `Skylight`.
26
35
  * [BREAKING] Remove `Skylight::Util::Inflector`
27
36
  * [BREAKING] Drop support for Rails 4
28
- * [BREAKING] Drop support for Ruby 2.3
37
+ * [BREAKING] Drop support for Ruby 2.3 and 2.4
38
+ * [BREAKING] Drop support for glibc < 2.23
29
39
 
30
40
  * [BUGFIX] Fix issue with missing metadata in MongoDB probe
31
41
  * [BUGFIX] Resolve an inability to parse certain SQL queries containing arrays
data/ext/libskylight.yml CHANGED
@@ -1,8 +1,11 @@
1
- # commit: ea59cc7bdbbee0f69d1cf7e69827974a9ea67645
1
+ # commit 8a5d5b9a48ed1f3bb75b9bb32c51c102fa1cf598
2
2
  ---
3
- version: "5.0.0-488d432"
3
+ version: "5.1.0-7b3c5cf"
4
4
  checksums:
5
- x86-linux: "3c16b6db1508f35720258551783fbcd30fd231638bad316ea76748d659838399"
6
- x86_64-linux: "94383aa3359c3f2e9c0e3c16ee263d46c5673dd255f8842e6acadf5ec3131c06"
7
- x86_64-linux-musl: "d2e2e2e61c321315f9bcaa157426f33aef8ffc2330ba46b2cdcbd9442e65f728"
8
- x86_64-darwin: "bcc925d0bcbae83a484f35dbc9729dcf262e1f3a8c29b8d387d0f58ad8f3afa3"
5
+ x86-linux: "51e7e54bbbfe3a8785eda6b041aa27f2bc46fd80134b82f4f4a45ac7fc3e7105"
6
+ x86_64-linux: "9d0d3b94c37beacb3acb55152c614632473c5251d383aa366c443c32ba0a0e70"
7
+ x86_64-linux-musl: "52ae0d56f4d545a6f455140ceb0c4616308872223334f39a73b3aeaff2fef07a"
8
+ x86_64-darwin: "2839ee8576980d3de597a76b0080b6e0e6c345a90543528f72175616d9ef4be5"
9
+ aarch64-linux: "9787d414fa4e52be6aa3b4aeaae45eced2c0049845bdafa584c4587ea9c69e3a"
10
+ aarch64-linux-musl: "66cb234ebb468277c001e74fb0bd2427b01e53147472738fc0814d0845616ecc"
11
+ aarch64-darwin: "d85bd55de7ae01e11d15bcf8446c5de3801ccbbddfb7e027808cab6566b59498"
@@ -97,7 +97,8 @@ module Skylight
97
97
  -"CLIENT_QUEUE_DEPTH" => :'daemon.client_queue_depth',
98
98
  -"CLIENT_WRITE_TIMEOUT" => :'daemon.client_write_timeout',
99
99
  -"SSL_CERT_PATH" => :'daemon.ssl_cert_path',
100
- -"SSL_CERT_DIR" => :'daemon.ssl_cert_dir',
100
+ -"ENABLE_TCP" => :'daemon.enable_tcp',
101
+ -"TCP_PORT" => :'daemon.tcp_port',
101
102
 
102
103
  # == Legacy env vars ==
103
104
  #
@@ -166,7 +167,6 @@ module Skylight
166
167
 
167
168
  unless Util::Platform::OS == -"darwin"
168
169
  ret[:'daemon.ssl_cert_path'] = Util::SSL.ca_cert_file_or_default
169
- ret[:'daemon.ssl_cert_dir'] = Util::SSL.ca_cert_dir
170
170
  end
171
171
 
172
172
  if Skylight.native?
@@ -226,6 +226,8 @@ module Skylight
226
226
  daemon.client_write_timeout
227
227
  daemon.ssl_cert_path
228
228
  daemon.ssl_cert_dir
229
+ daemon.enable_tcp
230
+ daemon.tcp_port
229
231
  ]
230
232
  end
231
233
 
@@ -285,9 +287,9 @@ module Skylight
285
287
  error = nil
286
288
  begin
287
289
  attrs = YAML.safe_load(ERB.new(File.read(path)).result,
288
- [], # permitted_classes
289
- [], # permitted_symbols
290
- true) # aliases enabled
290
+ permitted_classes: [],
291
+ permitted_symbols: [],
292
+ aliases: true)
291
293
  error = "empty file" unless attrs
292
294
  error = "invalid format" if attrs && !attrs.is_a?(Hash)
293
295
  rescue Exception => e
@@ -18,37 +18,15 @@ module Skylight
18
18
  end
19
19
  end
20
20
 
21
- def self.detect_ca_cert_dir!
22
- return nil if ENV["SKYLIGHT_FORCE_OWN_CERTS"]
23
-
24
- @ca_cert_dir = false
25
- if defined?(OpenSSL::X509::DEFAULT_CERT_DIR)
26
- d = OpenSSL::X509::DEFAULT_CERT_DIR
27
-
28
- if d && File.exist?(d)
29
- @ca_cert_dir = d
30
- end
31
- end
32
- end
33
-
34
21
  detect_ca_cert_file!
35
- detect_ca_cert_dir!
36
22
 
37
23
  def self.ca_cert_file?
38
24
  !!@ca_cert_file
39
25
  end
40
26
 
41
- def self.ca_cert_dir?
42
- !!@ca_cert_dir
43
- end
44
-
45
27
  def self.ca_cert_file_or_default
46
28
  @ca_cert_file || DEFAULT_CA_FILE
47
29
  end
48
-
49
- class << self
50
- attr_reader :ca_cert_dir
51
- end
52
30
  end
53
31
  end
54
32
  end
@@ -3,5 +3,5 @@ module Skylight
3
3
  # for compatibility with semver when it is parsed by the rust agent.
4
4
  # This string will be transformed in the gemspec to "5.0.0.alpha"
5
5
  # to conform with rubygems.
6
- VERSION = "5.0.1".freeze
6
+ VERSION = "5.1.0-beta".freeze
7
7
  end
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.0.1
4
+ version: 5.1.0.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tilde, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-12 00:00:00.000000000 Z
11
+ date: 2021-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 1.11.0
145
+ version: 1.13.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.11.0
152
+ version: 1.13.0
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: simplecov
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -378,11 +378,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
378
378
  version: '2.5'
379
379
  required_rubygems_version: !ruby/object:Gem::Requirement
380
380
  requirements:
381
- - - ">="
381
+ - - ">"
382
382
  - !ruby/object:Gem::Version
383
- version: '0'
383
+ version: 1.3.1
384
384
  requirements: []
385
- rubygems_version: 3.2.3
385
+ rubygems_version: 3.2.15
386
386
  signing_key:
387
387
  specification_version: 4
388
388
  summary: Skylight is a smart profiler for Rails, Sinatra, and other Ruby apps.