skylight 3.1.0.beta → 3.1.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/ext/libskylight.yml +6 -6
- data/ext/skylight_native.c +14 -0
- data/lib/skylight/config.rb +7 -6
- data/lib/skylight/railtie.rb +1 -1
- data/lib/skylight/trace.rb +5 -0
- data/lib/skylight/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1664cf033ce6902a420b8d30643a15ad930a288a9b19b5f74d6045f0b29a6da6
|
4
|
+
data.tar.gz: cd37daff16478e809582981932ab71da7770d7ce5a381fa33455e7bb642d8ee7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b5e035ee2aa19996bbb9439f4a1cf2cf46e9ba5a47683130e23fe4a09eaaabf7f0462c551132ae8553a63442ffdde96348ae6be11d7007eb73426332fe500c2
|
7
|
+
data.tar.gz: de6c79afca7082a658f2f7189858f5066930d20020f7642252295d32ae99d8a81536d472fce6b13c197eaf2875f3860fcba23d0376b5976ea6d8d11bbb25c021
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 3.1.0-beta2
|
2
|
+
* [IMPROVEMENT] Trace Mongo aggregate queries
|
3
|
+
* [BUGFIX] Correct configuration keys in skylight.yml
|
4
|
+
|
1
5
|
## 3.1.0-beta
|
2
6
|
* [BUGFIX] SQL queries with schema-qualified table names are parsed correctly
|
3
7
|
* [BUGFIX] `SELECT ... FOR UPDATE` queries are parsed correctly
|
data/ext/libskylight.yml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
version: "3.1.0-
|
1
|
+
version: "3.1.0-5bbb3e6"
|
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: "992b88db54dbe981c76c7263ab93aaa03a54cbaf393aba1422cd083f79eb6df3"
|
4
|
+
x86_64-linux: "dca8f50b91888f63c59d907e2c09c57daf921ae11bd29b04862533782ae28fdf"
|
5
|
+
x86_64-linux-musl: "5ff0afd380bba43a6842449afea31e3fac2dd153d8355227661fc3b83b94fe03"
|
6
|
+
x86_64-darwin: "a560b78270cf3dbdf6ad4847b4366b80f948cce6ae639e6633d924777de7cff7"
|
7
|
+
x86_64-freebsd: "346d647be38bacdc0dd4d7694892146cff3e88873a582946c13cf8631ae221d1"
|
data/ext/skylight_native.c
CHANGED
@@ -334,6 +334,19 @@ trace_set_endpoint(VALUE self, VALUE endpoint) {
|
|
334
334
|
return Qnil;
|
335
335
|
}
|
336
336
|
|
337
|
+
static VALUE
|
338
|
+
trace_use_pruning(VALUE self) {
|
339
|
+
sky_trace_t* trace;
|
340
|
+
|
341
|
+
My_Struct(trace, sky_trace_t, consumed_trace_msg);
|
342
|
+
|
343
|
+
CHECK_FFI(
|
344
|
+
sky_trace_use_pruning(trace),
|
345
|
+
"Trace#native_use_pruning");
|
346
|
+
|
347
|
+
return Qtrue;
|
348
|
+
}
|
349
|
+
|
337
350
|
static VALUE
|
338
351
|
trace_set_exception(VALUE self, VALUE exception) {
|
339
352
|
UNUSED(self);
|
@@ -556,6 +569,7 @@ void Init_skylight_native() {
|
|
556
569
|
rb_define_method(rb_cTrace, "native_get_started_at", trace_get_started_at, 0);
|
557
570
|
rb_define_method(rb_cTrace, "native_get_endpoint", trace_get_endpoint, 0);
|
558
571
|
rb_define_method(rb_cTrace, "native_set_endpoint", trace_set_endpoint, 1);
|
572
|
+
rb_define_method(rb_cTrace, "native_use_pruning", trace_use_pruning, 0);
|
559
573
|
rb_define_method(rb_cTrace, "native_set_exception", trace_set_exception, 1);
|
560
574
|
rb_define_method(rb_cTrace, "native_get_uuid", trace_get_uuid, 0);
|
561
575
|
rb_define_method(rb_cTrace, "native_start_span", trace_start_span, 2);
|
data/lib/skylight/config.rb
CHANGED
@@ -19,8 +19,8 @@ module Skylight
|
|
19
19
|
'SESSION_TOKEN' => :session_token,
|
20
20
|
|
21
21
|
# == Component settings ==
|
22
|
-
'ENV' => :
|
23
|
-
'COMPONENT' => :
|
22
|
+
'ENV' => :env,
|
23
|
+
'COMPONENT' => :component,
|
24
24
|
'REPORT_RAILS_ENV' => :report_rails_env,
|
25
25
|
|
26
26
|
# == Deploy settings ==
|
@@ -30,6 +30,7 @@ module Skylight
|
|
30
30
|
|
31
31
|
# == Max Span Handling ==
|
32
32
|
'REPORT_MAX_SPANS_EXCEEDED' => :report_max_spans_exceeded,
|
33
|
+
'PRUNE_LARGE_TRACES' => :prune_large_traces,
|
33
34
|
|
34
35
|
# == Instrumenter ==
|
35
36
|
"IGNORED_ENDPOINT" => :ignored_endpoint,
|
@@ -90,6 +91,7 @@ module Skylight
|
|
90
91
|
:'daemon.lazy_start' => true,
|
91
92
|
:hostname => Util::Hostname.default_hostname,
|
92
93
|
:report_max_spans_exceeded => false,
|
94
|
+
:prune_large_traces => false,
|
93
95
|
:report_rails_env => true,
|
94
96
|
)
|
95
97
|
|
@@ -296,8 +298,7 @@ authentication: #{self[:authentication]}
|
|
296
298
|
end
|
297
299
|
|
298
300
|
def component
|
299
|
-
@component ||= Util::Component.new(get(:
|
300
|
-
get(:'component.name'))
|
301
|
+
@component ||= Util::Component.new(get(:env), get(:component))
|
301
302
|
rescue ArgumentError => e
|
302
303
|
raise Core::ConfigError, e.message
|
303
304
|
end
|
@@ -310,9 +311,9 @@ authentication: #{self[:authentication]}
|
|
310
311
|
end
|
311
312
|
|
312
313
|
def reporting_env?
|
313
|
-
# true if
|
314
|
+
# true if env was explicitly set,
|
314
315
|
# or if we are auto-detecting via the opt-in SKYLIGHT_REPORT_RAILS_ENV=true
|
315
|
-
!!(get(:report_rails_env) || get(:
|
316
|
+
!!(get(:report_rails_env) || get(:env))
|
316
317
|
end
|
317
318
|
end
|
318
319
|
end
|
data/lib/skylight/railtie.rb
CHANGED
data/lib/skylight/trace.rb
CHANGED
@@ -3,6 +3,7 @@ module Skylight
|
|
3
3
|
def initialize(*)
|
4
4
|
super
|
5
5
|
@too_many_spans = false
|
6
|
+
native_use_pruning if use_pruning?
|
6
7
|
end
|
7
8
|
|
8
9
|
def uuid
|
@@ -47,5 +48,9 @@ module Skylight
|
|
47
48
|
super
|
48
49
|
end
|
49
50
|
|
51
|
+
def use_pruning?
|
52
|
+
config.get(:prune_large_traces)
|
53
|
+
end
|
54
|
+
|
50
55
|
end
|
51
56
|
end
|
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.1.0.
|
4
|
+
version: 3.1.0.beta2
|
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-09-
|
11
|
+
date: 2018-09-21 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.1.0.
|
19
|
+
version: 3.1.0.beta2
|
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.1.0.
|
26
|
+
version: 3.1.0.beta2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|