skylight 5.2.0.beta2 → 5.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99481f50c8e9caf68288746feb32c93d2a969c0770c573ea6a4f5339deca7a8e
4
- data.tar.gz: f39c3462788ebd87ec29c56c3863efac94bf9be18f023c93540d4af96228ba18
3
+ metadata.gz: fc19196b2920db75b79fae6c65192174b3493387acf49ac77a6217b3790ba04e
4
+ data.tar.gz: da0c089c1fbc0531e9a8f1753e64cfdd79792edb50c36778e4862d0b27598c21
5
5
  SHA512:
6
- metadata.gz: 8ea1d4c80b043c085f612cbee130f10079b0a9f24392552a4a14b3fcd327831f8ca61d19fee4570d1a04d7289e18d431ff5f9ed5a8d567eb69afa7fd6f6d9fea
7
- data.tar.gz: cc73adc6a339389ecfeca93f7a91496958f6769c24bea6d29dad2885800c8b5f3273635522450f56c6de3f53f42045219e32e054edc80620a5abe1cde779f682
6
+ metadata.gz: 426d918a456c5c47442534b3c7f51d2f36d05425077930b167383954fcea702d3be0abdf67acada63a1272dbcfe31c7632ac24c1dc8ffb579a7ca431f43b6412
7
+ data.tar.gz: 31c169c52f43217b53d361b18327311915ad70b09bdb35354816eec1ed3b341611cb02f0bd40566a9641122e8d75974d487ecb43eb8ee1086b1e132fda37fd14
data/CHANGELOG.md CHANGED
@@ -1,12 +1,9 @@
1
- ## 5.2.0-beta2 (10 November 2021)
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-f504521"
1
+ version: "5.1.0-6812c12"
2
2
  checksums:
3
- x86-linux: "46bdaaf5a0b2605e1bf581756317dcac7cd6db66bda1b2994dd8de5f933f752e"
4
- x86_64-linux: "300e3d2e770c2cefdb43bde6d6538bde69c18ec9c6b50210f24959a8efcd8749"
5
- x86_64-linux-musl: "9f790db33f2c4f6c68ecb2d4719c881e3cf3634ac3718db4c108994d6c55f6a8"
6
- x86_64-darwin: "90c4ff6650350f084495cc031bb70ae1ef7a4934712a0c97dcdbfc6ce418342c"
7
- aarch64-linux: "f5437881ecb6ac59af1e8c89e19e68baf52730088efd030855b2e40bc714a2ba"
8
- aarch64-linux-musl: "d52bac0d1a0d965940ded2168acb72d2c23b060eb1bac9983763cc8b7cada8ba"
9
- aarch64-darwin: "b92c85242b94e7eb71680de41a504a22e9dba145408bdd810757e693e065456d"
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"
@@ -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);
@@ -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.map { |k| [k, self.class.default_values.fetch(k)] }.to_h
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 = allocate
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)
@@ -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.2.0-beta2".freeze
6
+ VERSION = "5.2.0".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.2.0.beta2
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: 2021-11-11 00:00:00.000000000 Z
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.21.0
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.21.0
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: 1.3.1
385
+ version: '0'
385
386
  requirements: []
386
- rubygems_version: 3.0.8
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.