skylight 5.2.0.beta2 → 5.2.0
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 +4 -4
- data/CHANGELOG.md +2 -5
- data/ext/libskylight.yml +8 -8
- data/ext/skylight_native.c +2 -0
- data/lib/skylight/config.rb +1 -1
- data/lib/skylight/test.rb +1 -5
- data/lib/skylight/version.rb +1 -1
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc19196b2920db75b79fae6c65192174b3493387acf49ac77a6217b3790ba04e
|
4
|
+
data.tar.gz: da0c089c1fbc0531e9a8f1753e64cfdd79792edb50c36778e4862d0b27598c21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 426d918a456c5c47442534b3c7f51d2f36d05425077930b167383954fcea702d3be0abdf67acada63a1272dbcfe31c7632ac24c1dc8ffb579a7ca431f43b6412
|
7
|
+
data.tar.gz: 31c169c52f43217b53d361b18327311915ad70b09bdb35354816eec1ed3b341611cb02f0bd40566a9641122e8d75974d487ecb43eb8ee1086b1e132fda37fd14
|
data/CHANGELOG.md
CHANGED
@@ -1,12 +1,9 @@
|
|
1
|
-
## 5.2.0
|
1
|
+
## 5.2.0
|
2
2
|
|
3
3
|
- [FEATURE] Experimental gRPC transport
|
4
4
|
- [IMPROVEMENT] Internal native client refactors
|
5
|
-
- [BUGFIX] Fix some internal errors related to Rails 7 alpha
|
6
|
-
|
7
|
-
## 5.2.0-beta (7 September 2021)
|
8
|
-
|
9
5
|
- [IMPROVEMENT] Add Rack::Builder probe to better instrument middlewares in Sinatra and other Builder-based apps
|
6
|
+
- [BUGFIX] Fix some internal errors related to Rails 7
|
10
7
|
- [BUGFIX] Fix an issue in which trace logging could output the incorrect request ID.
|
11
8
|
- [BUGFIX] fix native extension configuration for arm64 hosts
|
12
9
|
|
data/ext/libskylight.yml
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
version: "5.1.0-
|
1
|
+
version: "5.1.0-6812c12"
|
2
2
|
checksums:
|
3
|
-
x86-linux: "
|
4
|
-
x86_64-linux: "
|
5
|
-
x86_64-linux-musl: "
|
6
|
-
x86_64-darwin: "
|
7
|
-
aarch64-linux: "
|
8
|
-
aarch64-linux-musl: "
|
9
|
-
aarch64-darwin: "
|
3
|
+
x86-linux: "d3acbbcd14209e8564226e005db2163b7d1ae49133eb250a7901ff2687abe330"
|
4
|
+
x86_64-linux: "dfb1062572780285795eef2e99d32ff3ad6be1c944c1a6add442488f7a4a9b22"
|
5
|
+
x86_64-linux-musl: "af09469f20c666a15ccbb910d8906c6a69a99f87f69db6cbba41908baf3fcef2"
|
6
|
+
x86_64-darwin: "eb4cb7b9301e0b1f88623203a4476bdabf299ec62556dc40bedda78c5eeb1437"
|
7
|
+
aarch64-linux: "3d5e8743c4dfdde5be3b6162c75b0351ff0be5658819c1fec9f3a936c4c81a32"
|
8
|
+
aarch64-linux-musl: "30705f76e333f4883a9481a34bc2dfeb7e9fd6f98c0cf8afbe63f232f3ceb1e5"
|
9
|
+
aarch64-darwin: "9f8ffc752b0e17bde587e5a5510b17554096b2b65fa2e19203ff1ee3a3145b1d"
|
data/ext/skylight_native.c
CHANGED
@@ -520,6 +520,7 @@ void Init_skylight_native() {
|
|
520
520
|
|
521
521
|
rb_cTrace = rb_const_get(rb_mSkylight, rb_intern("Trace"));
|
522
522
|
rb_define_singleton_method(rb_cTrace, "native_new", trace_new, 4);
|
523
|
+
rb_undef_alloc_func(rb_cTrace);
|
523
524
|
rb_define_method(rb_cTrace, "native_get_started_at", trace_get_started_at, 0);
|
524
525
|
rb_define_method(rb_cTrace, "native_get_endpoint", trace_get_endpoint, 0);
|
525
526
|
rb_define_method(rb_cTrace, "native_set_endpoint", trace_set_endpoint, 1);
|
@@ -540,6 +541,7 @@ void Init_skylight_native() {
|
|
540
541
|
|
541
542
|
rb_cInstrumenter = rb_const_get(rb_mSkylight, rb_intern("Instrumenter"));
|
542
543
|
rb_define_singleton_method(rb_cInstrumenter, "native_new", instrumenter_new, 2);
|
544
|
+
rb_undef_alloc_func(rb_cInstrumenter);
|
543
545
|
rb_define_method(rb_cInstrumenter, "native_start", instrumenter_start, 0);
|
544
546
|
rb_define_method(rb_cInstrumenter, "native_stop", instrumenter_stop, 0);
|
545
547
|
rb_define_method(rb_cInstrumenter, "native_submit_trace", instrumenter_submit_trace, 1);
|
data/lib/skylight/config.rb
CHANGED
@@ -659,7 +659,7 @@ module Skylight
|
|
659
659
|
corrected_config = res.corrected_config
|
660
660
|
|
661
661
|
# Use defaults if no corrected config is available. This will happen if the request failed.
|
662
|
-
corrected_config ||= SERVER_VALIDATE.
|
662
|
+
corrected_config ||= SERVER_VALIDATE.to_h { |k| [k, self.class.default_values.fetch(k)] }
|
663
663
|
|
664
664
|
config_to_update = corrected_config.reject { |k, v| get(k) == v }
|
665
665
|
unless config_to_update.empty?
|
data/lib/skylight/test.rb
CHANGED
@@ -25,10 +25,6 @@ module Skylight
|
|
25
25
|
"Mocked Instrumenter"
|
26
26
|
end
|
27
27
|
|
28
|
-
def self.native_new(*)
|
29
|
-
allocate
|
30
|
-
end
|
31
|
-
|
32
28
|
def native_start
|
33
29
|
true
|
34
30
|
end
|
@@ -47,7 +43,7 @@ module Skylight
|
|
47
43
|
:Trace,
|
48
44
|
Class.new(OriginalTrace) do
|
49
45
|
def self.native_new(start, _uuid, endpoint, meta)
|
50
|
-
inst =
|
46
|
+
inst = super
|
51
47
|
inst.instance_variable_set(:@start, start)
|
52
48
|
inst.instance_variable_set(:@endpoint, endpoint)
|
53
49
|
inst.instance_variable_set(:@starting_endpoint, endpoint)
|
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.2.0
|
4
|
+
version: 5.2.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:
|
11
|
+
date: 2022-02-03 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.
|
145
|
+
version: 1.25.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.25.0
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: simplecov
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -367,7 +367,8 @@ files:
|
|
367
367
|
homepage: https://www.skylight.io
|
368
368
|
licenses:
|
369
369
|
- Nonstandard
|
370
|
-
metadata:
|
370
|
+
metadata:
|
371
|
+
rubygems_mfa_required: 'true'
|
371
372
|
post_install_message:
|
372
373
|
rdoc_options: []
|
373
374
|
require_paths:
|
@@ -379,11 +380,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
379
380
|
version: '2.6'
|
380
381
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
381
382
|
requirements:
|
382
|
-
- - "
|
383
|
+
- - ">="
|
383
384
|
- !ruby/object:Gem::Version
|
384
|
-
version:
|
385
|
+
version: '0'
|
385
386
|
requirements: []
|
386
|
-
rubygems_version: 3.
|
387
|
+
rubygems_version: 3.3.3
|
387
388
|
signing_key:
|
388
389
|
specification_version: 4
|
389
390
|
summary: Skylight is a smart profiler for Rails, Sinatra, and other Ruby apps.
|