skylight 3.0.0.beta → 3.0.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 +4 -2
- data/ext/libskylight.yml +6 -6
- data/ext/skylight_native.c +4 -9
- data/lib/skylight/cli/merger.rb +2 -10
- data/lib/skylight/config.rb +0 -4
- data/lib/skylight/instrumenter.rb +1 -1
- data/lib/skylight/version.rb +1 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3d52807dfcc47bd02788b6b996921f0f47b7b8eccefd0545a310d9755ccdc3e
|
4
|
+
data.tar.gz: 6da460459338d335c44a3da3496bb6f7a934a014e093929a73e1a8f944e845c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e4b0471a20308613cace63064abc99575b6a54aecdd4a87049e696d66e87450153b200a04bb006c03491a1244f075e22a4ba209a465f6b2b9d9d8a70eda2ecb
|
7
|
+
data.tar.gz: f4a1cacee3ecf2cb806060ebb4d66aa7b55f03e4e26506f14ab8a8eeaed9daaebba8827c0400d5b8b8db13397fe0e679fda6c06bfc826067b1615bd67e5fb526
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
## 3.0.0
|
1
|
+
## 3.0.0 (September 5, 2018)
|
2
2
|
|
3
|
-
* [
|
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
|
|
data/ext/libskylight.yml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
version: "3.0.0-
|
1
|
+
version: "3.0.0-61985c9"
|
2
2
|
checksums:
|
3
|
-
x86-linux: "
|
4
|
-
x86_64-linux: "
|
5
|
-
x86_64-linux-musl: "
|
6
|
-
x86_64-darwin: "
|
7
|
-
x86_64-freebsd: "
|
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"
|
data/ext/skylight_native.c
CHANGED
@@ -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
|
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
|
-
|
519
|
-
|
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,
|
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
|
|
data/lib/skylight/cli/merger.rb
CHANGED
@@ -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
|
-
"
|
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
|
-
"
|
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
|
|
data/lib/skylight/config.rb
CHANGED
@@ -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
|
)
|
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: 3.0.0
|
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-
|
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
|
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
|
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:
|
268
|
+
version: '0'
|
269
269
|
requirements: []
|
270
270
|
rubyforge_project:
|
271
271
|
rubygems_version: 2.7.6
|