skylight 5.0.0.beta5 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -20
- data/CONTRIBUTING.md +1 -1
- data/lib/skylight/config.rb +4 -12
- data/lib/skylight/version.rb +1 -1
- metadata +20 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66c646baeaeddece5a75140908f8c7d1aec447945903ff5681c1e4de58839e79
|
4
|
+
data.tar.gz: a3fe10a6b05963038f40f4b82d77cd545c42fa546d63cd440a21eb3839280b71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca6b42cfa51a39f1cccfc8f169a9bdc1560ec9774423c1ca335ec6fc26bd70d47f40c62d9e645ea626b00626e962a9ef3dbda49c693de0a56fef10bc04ab1d76
|
7
|
+
data.tar.gz: ccb18fe7cc713c03544db2a0d1dc5c42d86fe5ee14c0db11e208884203b7141cd39032bdb75f5c7eaf341b1ded6e9c761e8529e1bf50d1c499b1bab85a545fcd
|
data/CHANGELOG.md
CHANGED
@@ -1,35 +1,31 @@
|
|
1
|
-
## 5.0.0
|
1
|
+
## 5.0.0 (March 5, 2021)
|
2
|
+
|
3
|
+
* [FEATURE] Add normalizer for Shrine events (thanks @janko!)
|
4
|
+
* [FEATURE] Source Locations detection and reporting is now enabled by default (can be disabled with `SKYLIGHT_ENABLE_SOURCE_LOCATIONS=false`)
|
5
|
+
* [FEATURE] Configuration for the Source Locations caches via `SYLIGHT_SOURCE_LOCATION_CACHE_SIZE`
|
6
|
+
|
2
7
|
* [IMPROVEMENT] Improve keyword argument handling in Skylight::Helpers (thanks @lukebooth!)
|
3
8
|
* [IMPROVEMENT] Replace a Kernel.puts with Skylight.log (thanks @johnnyshields!)
|
4
9
|
* [IMPROVEMENT] Various updates to the SQL lexer
|
5
|
-
* [FEATURE] Add normalizer for Shrine events (thanks @janko!)
|
6
|
-
|
7
|
-
## 5.0.0.beta4
|
8
10
|
* [IMPROVEMENT] Reduce volume of log messages sent to the native logger in debug level
|
9
|
-
|
10
|
-
## 5.0.0.beta3
|
11
11
|
* [IMPROVEMENT] Optimizations for the Source Locations extension
|
12
|
-
* [
|
13
|
-
* [
|
14
|
-
* [
|
12
|
+
* [IMPROVEMENT] Improved Delayed::Job probe
|
13
|
+
* [IMPROVEMENT] Maintain method visibility when instrumenting with `instrument_method`
|
14
|
+
* [IMPROVEMENT] Update probes to use `Module#prepend` where possible
|
15
|
+
* [IMPROVEMENT] New tokio-based skylightd
|
16
|
+
* [IMPROVEMENT] Support `render_layout` notifications in Rails 6.1
|
17
|
+
* [IMPROVEMENT] Support `ActionMailer::MailDeliveryJob` in Rails 6.1
|
18
|
+
* [IMPROVEMENT] Better logging config. `SKYLIGHT_NATIVE_LOG_LEVEL` now defaults to `warn`.
|
15
19
|
|
16
|
-
## 5.0.0.beta2
|
17
|
-
* [FEATURE] Source Locations detection and reporting is now enabled by default (can be disabled with `SKYLIGHT_ENABLE_SOURCE_LOCATIONS=false`)
|
18
20
|
* [BREAKING] Rename `environment` keyword argument to `priority_key`. Note `env` has not changed.
|
19
21
|
* [BREAKING] Drop support for Ruby 2.4
|
20
|
-
* [IMPROVEMENT] Improved Delayed::Job probe
|
21
|
-
|
22
|
-
## 5.0.0.beta
|
23
22
|
* [BREAKING] Merge skylight-core into skylight. All classes previously namespaced under `Skylight::Core` have been moved to `Skylight`.
|
24
23
|
* [BREAKING] Remove `Skylight::Util::Inflector`
|
25
24
|
* [BREAKING] Drop support for Rails 4
|
26
25
|
* [BREAKING] Drop support for Ruby 2.3
|
27
|
-
|
28
|
-
* [
|
29
|
-
* [
|
30
|
-
* [IMPROVEMENT] Support `render_layout` notifications in Rails 6.1
|
31
|
-
* [IMPROVEMENT] Support `ActionMailer::MailDeliveryJob` in Rails 6.1
|
32
|
-
* [IMPROVEMENT] Better logging config
|
26
|
+
|
27
|
+
* [BUGFIX] Fix issue with missing metadata in MongoDB probe
|
28
|
+
* [BUGFIX] Resolve an inability to parse certain SQL queries containing arrays
|
33
29
|
* [BUGFIX] Allow multiple probes to be registered under the same key
|
34
30
|
* [BUGFIX] Do not refer to Redis constant until the probe is installed
|
35
31
|
* [BUGFIX] Fix nested calls to `Normalizers::Faraday::Request.disable`
|
data/CONTRIBUTING.md
CHANGED
@@ -16,7 +16,7 @@ If you prefer to run tests in your own environment, you may do so as follows:
|
|
16
16
|
|
17
17
|
```shell
|
18
18
|
# Select a gemfile and bundle install
|
19
|
-
export BUNDLE_GEMFILE=$PWD/gemfiles/
|
19
|
+
export BUNDLE_GEMFILE=$PWD/gemfiles/rails-5.2.x/Gemfile
|
20
20
|
bundle install
|
21
21
|
# Run the test suite (takes 5-10 minutes)
|
22
22
|
bundle exec rspec
|
data/lib/skylight/config.rb
CHANGED
@@ -44,6 +44,7 @@ module Skylight
|
|
44
44
|
-"LOG_LEVEL" => :log_level,
|
45
45
|
-"ALERT_LOG_FILE" => :alert_log_file,
|
46
46
|
-"NATIVE_LOG_FILE" => :native_log_file,
|
47
|
+
-"NATIVE_LOG_LEVEL" => :native_log_level,
|
47
48
|
-"LOG_SQL_PARSE_ERRORS" => :log_sql_parse_errors,
|
48
49
|
|
49
50
|
# == Proxy ==
|
@@ -144,6 +145,7 @@ module Skylight
|
|
144
145
|
log_level: -"INFO",
|
145
146
|
alert_log_file: -"-",
|
146
147
|
log_sql_parse_errors: true,
|
148
|
+
native_log_level: -"warn",
|
147
149
|
|
148
150
|
# Features
|
149
151
|
enable_segments: true,
|
@@ -558,17 +560,7 @@ module Skylight
|
|
558
560
|
end
|
559
561
|
|
560
562
|
def native_log_level
|
561
|
-
|
562
|
-
if trace?
|
563
|
-
"trace"
|
564
|
-
else
|
565
|
-
case log_level
|
566
|
-
when Logger::DEBUG then "debug"
|
567
|
-
when Logger::INFO then "info"
|
568
|
-
when Logger::WARN then "warn"
|
569
|
-
else "error"
|
570
|
-
end
|
571
|
-
end
|
563
|
+
get(:native_log_level).to_s.downcase
|
572
564
|
end
|
573
565
|
|
574
566
|
def logger
|
@@ -691,7 +683,7 @@ module Skylight
|
|
691
683
|
corrected_config = res.corrected_config
|
692
684
|
|
693
685
|
# Use defaults if no corrected config is available. This will happen if the request failed.
|
694
|
-
corrected_config ||=
|
686
|
+
corrected_config ||= SERVER_VALIDATE.map { |k| [k, self.class.default_values.fetch(k)] }.to_h
|
695
687
|
|
696
688
|
config_to_update = corrected_config.reject { |k, v| get(k) == v }
|
697
689
|
unless config_to_update.empty?
|
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.0.0
|
4
|
+
version: 5.0.0
|
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-
|
11
|
+
date: 2021-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -142,14 +142,28 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 1.
|
145
|
+
version: 1.11.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.11.0
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: simplecov
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 0.21.2
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 0.21.2
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
168
|
name: timecop
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -364,9 +378,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
364
378
|
version: '2.5'
|
365
379
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
366
380
|
requirements:
|
367
|
-
- - "
|
381
|
+
- - ">="
|
368
382
|
- !ruby/object:Gem::Version
|
369
|
-
version:
|
383
|
+
version: '0'
|
370
384
|
requirements: []
|
371
385
|
rubygems_version: 3.2.3
|
372
386
|
signing_key:
|