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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e0fe62d44b7c3e18f7d22a6d8685f5d2111c8b35268c18f37416516511ac5a5
4
- data.tar.gz: eab956ac5303ceb77d7b0f6195120dbebe5f0440f3f87f7eb3b30723ad47eaea
3
+ metadata.gz: 1664cf033ce6902a420b8d30643a15ad930a288a9b19b5f74d6045f0b29a6da6
4
+ data.tar.gz: cd37daff16478e809582981932ab71da7770d7ce5a381fa33455e7bb642d8ee7
5
5
  SHA512:
6
- metadata.gz: 2b1026eaf0b5222e727373d7d85bbfe735c0e89824d4772872a13855abea39acfaa592fc98d94381f04327025cee7117c3a0c886ca993e9ed3a73e25fa4e6c58
7
- data.tar.gz: 9302f07d4d72f49447c8f335015fa5ed8a3efdb326a1c750ac4a3d86c6782904b50b0b37dadaabe1a062f6ef3c95f837432f4257bd5bb6e4e57b7ee03977a246
6
+ metadata.gz: 4b5e035ee2aa19996bbb9439f4a1cf2cf46e9ba5a47683130e23fe4a09eaaabf7f0462c551132ae8553a63442ffdde96348ae6be11d7007eb73426332fe500c2
7
+ data.tar.gz: de6c79afca7082a658f2f7189858f5066930d20020f7642252295d32ae99d8a81536d472fce6b13c197eaf2875f3860fcba23d0376b5976ea6d8d11bbb25c021
@@ -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
@@ -1,7 +1,7 @@
1
- version: "3.1.0-9085310"
1
+ version: "3.1.0-5bbb3e6"
2
2
  checksums:
3
- x86-linux: "76470913ced831eeeede50160ae2c8e13c7e7305ce7a379483983a136d9544ea"
4
- x86_64-linux: "e6b5b315b0b144261cd68864d1a4b0d5416850247cf44d443f4e8fdb0558a646"
5
- x86_64-linux-musl: "5b64bacc5440a6036e785f6de5bdc7a7e57d0a0f69f4fbd89b9130326cf0e43a"
6
- x86_64-darwin: "9025fd770d04729e8dd59164f5ee734c9badcd1476d6621b3d77338e67827b49"
7
- x86_64-freebsd: "92c889b8b20a9d0ffcba765a54d02722f927625002842203db423c4ddf9c7380"
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"
@@ -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);
@@ -19,8 +19,8 @@ module Skylight
19
19
  'SESSION_TOKEN' => :session_token,
20
20
 
21
21
  # == Component settings ==
22
- 'ENV' => :'component.environment',
23
- 'COMPONENT' => :'component.name',
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(:'component.environment'),
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 component.environment was explicitly set,
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(:'component.environment'))
316
+ !!(get(:report_rails_env) || get(:env))
316
317
  end
317
318
  end
318
319
  end
@@ -38,7 +38,7 @@ module Skylight
38
38
  def load_skylight_config(app)
39
39
  super.tap do |config|
40
40
  if config[:report_rails_env]
41
- config[:'component.environment'] ||= Rails.env.to_s
41
+ config[:env] ||= Rails.env.to_s
42
42
  end
43
43
  end
44
44
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Skylight
2
- VERSION = '3.1.0-beta'
2
+ VERSION = '3.1.0-beta2'
3
3
  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: 3.1.0.beta
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-14 00:00:00.000000000 Z
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.beta
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.beta
26
+ version: 3.1.0.beta2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement