skylight 3.0.0.beta → 3.0.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: c9d371e3b8cc2f1e570e61130d352215e51107f6861840b1f2476c9c3e1a46ab
4
- data.tar.gz: b037f983a6416f9af147156aab819a694a84e35ee0bc319d76578653a3186964
3
+ metadata.gz: d3d52807dfcc47bd02788b6b996921f0f47b7b8eccefd0545a310d9755ccdc3e
4
+ data.tar.gz: 6da460459338d335c44a3da3496bb6f7a934a014e093929a73e1a8f944e845c6
5
5
  SHA512:
6
- metadata.gz: 9370e806f12f02205d3911f3de966f95dbde20b7c808d5ce6f1aa5276ff0f213581fc3c1205b19419ee6d861c5e37c449816d07142052ad5e32f794dd531ce0a
7
- data.tar.gz: a1cc78dda26938c4312da0f57067a170ffee7c6059edaa2d01955426c5f2d366d644bf889a80305e3c04bf424a8a2a0dbf9cbf9343a0ba94cf20e3d6cbddab9d
6
+ metadata.gz: 7e4b0471a20308613cace63064abc99575b6a54aecdd4a87049e696d66e87450153b200a04bb006c03491a1244f075e22a4ba209a465f6b2b9d9d8a70eda2ecb
7
+ data.tar.gz: f4a1cacee3ecf2cb806060ebb4d66aa7b55f03e4e26506f14ab8a8eeaed9daaebba8827c0400d5b8b8db13397fe0e679fda6c06bfc826067b1615bd67e5fb526
@@ -1,7 +1,9 @@
1
- ## 3.0.0-beta (August 2, 2018)
1
+ ## 3.0.0 (September 5, 2018)
2
2
 
3
- * [BETA FEATURE] First class support for [multiple application environments](https://www.skylight.io/support/environments)
3
+ * [FEATURE] First class support for [multiple application environments](https://www.skylight.io/support/environments)
4
4
  * [IMPROVEMENT] Better instrumentation of ActiveJob enqueues
5
+ * [BREAKING] The ActiveJob enqueue_at normalizer is now a probe that is enabled by default. The normalizer no longer needs to be required.
6
+ * [BREAKING] Remove SKYLIGHT_USE_OLD_SQL_LEXER config option
5
7
 
6
8
  ## 2.0.2 (June 4, 2018)
7
9
 
@@ -1,7 +1,7 @@
1
- version: "3.0.0-4e3325d"
1
+ version: "3.0.0-61985c9"
2
2
  checksums:
3
- x86-linux: "5f163ab012f92e4801783566e8d4804327448c603f57f4768d54de23f6c4768c"
4
- x86_64-linux: "9ad7672ed16fe7c7e54b19fc85fe22388f478872df11eacceb7d881397bb4061"
5
- x86_64-linux-musl: "f9a30d85dd0a63def447622ecdf5dbbddd379b14947e0f2d5c6b26546b9e6514"
6
- x86_64-darwin: "85a0125a012de2d650b978b615a0a3c040894ed38eece293b5e467fd4a1bf2a4"
7
- x86_64-freebsd: "c563ecff9289c3a716791a477cc360cd30ab84c4bbc4f888534b2a9c4a422d55"
3
+ x86-linux: "cf1d2a3c73c7ea09aff6172d69a4ab645524af988a0ba1848c8dfbc4c04d9aca"
4
+ x86_64-linux: "5558bbb03afc900edf690dfd8c0e94f062d3969d826c7cb60ad018449661928a"
5
+ x86_64-linux-musl: "a953d18e2b24731ae795b8f83555755eae0f883a2b7563cb5755edc98d4c7b6b"
6
+ x86_64-darwin: "a4352184085887b6e25334ba63018e4659618a916c06860b6977b29150e39125"
7
+ x86_64-freebsd: "506249ecf79419e69d3792cc89cb39e042574ee694003bcca578d815effe4913"
@@ -491,7 +491,7 @@ trace_span_get_correlation_header(VALUE self, VALUE span_id) {
491
491
  }
492
492
 
493
493
  static VALUE
494
- lex_sql(VALUE klass, VALUE rb_sql, VALUE rb_use_old_lexer) {
494
+ lex_sql(VALUE klass, VALUE rb_sql) {
495
495
  sky_buf_t sql;
496
496
  sky_buf_t title;
497
497
  sky_buf_t statement;
@@ -515,13 +515,8 @@ lex_sql(VALUE klass, VALUE rb_sql, VALUE rb_use_old_lexer) {
515
515
  .len = RSTRING_LEN(rb_sql),
516
516
  };
517
517
 
518
- if (RTEST(rb_use_old_lexer)) {
519
- CHECK_FFI(sky_lex_sql_old(sql, &title, &statement),
520
- "Skylight#lex_sql (old)");
521
- } else {
522
- CHECK_FFI(sky_lex_sql(sql, &title, &statement),
523
- "Skylight#lex_sql");
524
- }
518
+ CHECK_FFI(sky_lex_sql(sql, &title, &statement),
519
+ "Skylight#lex_sql");
525
520
 
526
521
  // Set the statement return
527
522
  rb_str_set_len(rb_statement, statement.len);
@@ -547,7 +542,7 @@ void Init_skylight_native() {
547
542
  rb_eNativeError = rb_const_get(rb_mSkylight, rb_intern("NativeError"));
548
543
 
549
544
  rb_define_singleton_method(rb_mSkylight, "load_libskylight", load_libskylight, 1);
550
- rb_define_singleton_method(rb_mSkylight, "lex_sql", lex_sql, 2);
545
+ rb_define_singleton_method(rb_mSkylight, "lex_sql", lex_sql, 1);
551
546
 
552
547
  rb_mCore = rb_define_module_under(rb_mSkylight, "Core");
553
548
 
@@ -136,17 +136,13 @@ module Skylight
136
136
  "#{@parent_app.name} #@child_env environment.\n", :yellow
137
137
 
138
138
  say "If you're running in Rails and your Rails environment exactly matches `#@child_env`,\n" \
139
- "set `report_rails_env: true` to allow the agent to detect and report that\n" \
140
- "environment when it connects.\n" \
139
+ "we will automatically detect and report that environment when your agent connects.\n" \
141
140
  "Otherwise, you should set `env: '#@child_env'` as environment-specific configuration for\n" \
142
141
  "#@child_env's Rails environment. For example:\n" \
143
142
  "```yml\n" \
144
143
  "staging:\n" \
145
144
  " env: staging-42\n" \
146
145
  "```\n", :yellow
147
- # TODO: https://github.com/tildeio/direwolf-agent/issues/380
148
- # report_rails_env above is for beta only. Update for final release
149
- # "we will automatically detect and report that environment when your agent connects.\n"
150
146
 
151
147
  say "=======================================================\n", :yellow
152
148
 
@@ -161,12 +157,8 @@ module Skylight
161
157
  "#{@parent_app.name} app's authentication token.\n", :yellow
162
158
 
163
159
  say "If you're running in Rails and your Rails environment exactly matches `#@child_env`,\n" \
164
- "set `SKYLIGHT_REPORT_RAILS_ENV=true` to allow the agent to detect and report\n" \
165
- "that environment when it connects.\n" \
160
+ "we will automatically detect and report that environment when your agent connects.\n" \
166
161
  "Otherwise, you should set `SKYLIGHT_ENV=#@child_env` when running in this environment.\n", :yellow
167
- # TODO: https://github.com/tildeio/direwolf-agent/issues/380
168
- # SKYLIGHT_REPORT_RAILS_ENV above is for beta only. Update for final release
169
- # "we will automatically detect and report that environment when your agent connects.\n"
170
162
 
171
163
  say "=======================================================", :yellow
172
164
 
@@ -28,9 +28,6 @@ module Skylight
28
28
  'DEPLOY_GIT_SHA' => :'deploy.git_sha',
29
29
  'DEPLOY_DESCRIPTION' => :'deploy.description',
30
30
 
31
- # == Sql Lexer ==
32
- 'USE_OLD_SQL_LEXER' => :use_old_sql_lexer,
33
-
34
31
  # == Max Span Handling ==
35
32
  'REPORT_MAX_SPANS_EXCEEDED' => :report_max_spans_exceeded,
36
33
 
@@ -92,7 +89,6 @@ module Skylight
92
89
  :validation_url => 'https://auth.skylight.io/agent/config',
93
90
  :'daemon.lazy_start' => true,
94
91
  :hostname => Util::Hostname.default_hostname,
95
- :use_old_sql_lexer => false,
96
92
  :report_max_spans_exceeded => false,
97
93
  :report_rails_env => true,
98
94
  )
@@ -18,7 +18,7 @@ module Skylight
18
18
  end
19
19
 
20
20
  def process_sql(sql)
21
- Skylight.lex_sql(sql, config[:use_old_sql_lexer])
21
+ Skylight.lex_sql(sql)
22
22
  end
23
23
  end
24
24
  end
@@ -1,4 +1,3 @@
1
1
  module Skylight
2
- VERSION = '3.0.0-beta'
2
+ VERSION = '3.0.0'
3
3
  end
4
-
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: 3.0.0.beta
4
+ version: 3.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: 2018-08-02 00:00:00.000000000 Z
11
+ date: 2018-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: skylight-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.0.beta
19
+ version: 3.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.0.0.beta
26
+ version: 3.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -263,9 +263,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
263
263
  version: 2.2.7
264
264
  required_rubygems_version: !ruby/object:Gem::Requirement
265
265
  requirements:
266
- - - ">"
266
+ - - ">="
267
267
  - !ruby/object:Gem::Version
268
- version: 1.3.1
268
+ version: '0'
269
269
  requirements: []
270
270
  rubyforge_project:
271
271
  rubygems_version: 2.7.6