skylight 0.3.0.rc.3 → 0.3.0.rc.4

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
  SHA1:
3
- metadata.gz: a2b5eb1b24fdff7848211503dcda7504e1967c11
4
- data.tar.gz: f1f07ea7ab290215cfef1fdadd0df71df2ee0634
3
+ metadata.gz: 3f46b600abb95cdab8144ba74c5bb9c38f57d7ba
4
+ data.tar.gz: 92d250e89d6a3c0e8b8abba4505bdca008ecc862
5
5
  SHA512:
6
- metadata.gz: 86e844881f4861ea358c4711cd0b60c7709c18472ee970212bad864f454e030f1f10692161ff20a0ca78e33362864518f7c4e921c5e61ca0656322a50dd24b0c
7
- data.tar.gz: 5dba678a612d519c3f11c808596486f2a17e8e383738039acff430d91d6b1e93d65a19d1005126f32a64f9e474e34551ffa9b76fc753195bac35d9f725f0a103
6
+ metadata.gz: a5afb3d009e3b5b0bddc15e96ed657ff37a39413d1332206e35f782dba7fd356c0170a7d3624fee391fb9dffe3ff8d58fd792dfe41dc0f1916e739b5342038d5
7
+ data.tar.gz: e48c91c0d993b1e07d4adc21e4830c07d65f92497fc0564c3cbf8f17dfc3991b262043de18097202ec52e2f76f13bcb59e0f4c43288a0f28a30ceb94b5c98fb0
@@ -18,7 +18,7 @@ url = "https://github.com/skylightio/skylight-rust/releases/download/v#{ruby_ver
18
18
  required = ENV.key?("SKYLIGHT_REQUIRED")
19
19
 
20
20
  unless File.exist?("libskylight.a")
21
- puts "[SKYLIGHT] Downloading from #{url.inspect}"
21
+ puts "[SKYLIGHT] [#{Skylight::VERSION}] Downloading from #{url.inspect}"
22
22
  location = nil
23
23
  uri = URI.parse(url)
24
24
 
@@ -64,7 +64,7 @@ unless File.exist?("libskylight.a")
64
64
  end
65
65
 
66
66
  if missing_a
67
- puts "[SKYLIGHT] Could not download Skylight native code from Github; version=#{rust_version.inspect}; arch=#{arch.inspect}"
67
+ puts "[SKYLIGHT] [#{Skylight::VERSION}] Could not download Skylight native code from Github; version=#{rust_version.inspect}; arch=#{arch.inspect}"
68
68
 
69
69
  exit 1 if required
70
70
 
@@ -9,7 +9,7 @@ begin
9
9
  has_native_ext = true
10
10
  end
11
11
  rescue LoadError
12
- puts "[SKYLIGHT] The Skylight native extension wasn't found. Skylight is not running."
12
+ puts "[SKYLIGHT] [#{Skylight::VERSION}] The Skylight native extension wasn't found. Skylight is not running."
13
13
  raise if ENV.key?("SKYLIGHT_REQUIRED")
14
14
  end
15
15
 
@@ -6,15 +6,15 @@ module Skylight
6
6
  require 'skylight/messages/trace_envelope'
7
7
 
8
8
  KLASS_TO_ID = {
9
+ Skylight::Trace => 0,
9
10
  Skylight::Hello => 1,
10
- Skylight::Trace => 2,
11
- Skylight::Error => 3
11
+ Skylight::Error => 2
12
12
  }
13
13
 
14
14
  ID_TO_KLASS = {
15
+ 0 => Skylight::Messages::TraceEnvelope,
15
16
  1 => Skylight::Hello,
16
- 2 => Skylight::Messages::TraceEnvelope,
17
- 3 => Skylight::Error
17
+ 2 => Skylight::Error
18
18
  }
19
19
  end
20
20
  end
@@ -92,7 +92,7 @@ module Skylight
92
92
  desc = @instrumenter.limited_description(desc)
93
93
 
94
94
  if desc == Instrumenter::TOO_MANY_UNIQUES
95
- debug "[SKYLIGHT] A payload description produced <too many uniques>"
95
+ debug "[SKYLIGHT] [#{Skylight::VERSION}] A payload description produced <too many uniques>"
96
96
  debug "original desc=%s", original_desc
97
97
  debug "cat=%s, title=%s, desc=%s, annot=%s", cat, title, desc, annot.inspect
98
98
  end
@@ -22,7 +22,7 @@ module Skylight
22
22
  Instrumenter.start!(config)
23
23
  app.middleware.insert 0, Middleware
24
24
 
25
- puts "[SKYLIGHT] Skylight agent enabled"
25
+ puts "[SKYLIGHT] [#{Skylight::VERSION}] Skylight agent enabled"
26
26
  end
27
27
  end
28
28
  end
@@ -38,7 +38,7 @@ module Skylight
38
38
  path = nil unless File.exist?(path)
39
39
 
40
40
  unless tmp = app.config.paths['tmp'].first
41
- puts "[SKYLIGHT] tmp directory missing from rails configuration"
41
+ puts "[SKYLIGHT] [#{Skylight::VERSION}] tmp directory missing from rails configuration"
42
42
  return nil
43
43
  end
44
44
 
@@ -53,7 +53,7 @@ module Skylight
53
53
  config
54
54
 
55
55
  rescue ConfigError => e
56
- puts "[SKYLIGHT] #{e.message}; disabling Skylight agent"
56
+ puts "[SKYLIGHT] [#{Skylight::VERSION}] #{e.message}; disabling Skylight agent"
57
57
  nil
58
58
  end
59
59
 
@@ -51,9 +51,9 @@ module Skylight
51
51
  return unless logger.respond_to?(level)
52
52
 
53
53
  if args.length > 0
54
- logger.send level, sprintf("[SKYLIGHT] #{msg}", *args)
54
+ logger.send level, sprintf("[SKYLIGHT] [#{Skylight::VERSION}] #{msg}", *args)
55
55
  else
56
- logger.send level, "[SKYLIGHT] #{msg}"
56
+ logger.send level, "[SKYLIGHT] [#{Skylight::VERSION}] #{msg}"
57
57
  end
58
58
  end
59
59
  rescue Exception => e
@@ -1,4 +1,4 @@
1
1
  module Skylight
2
- VERSION = '0.3.0.rc.3'
2
+ VERSION = '0.3.0.rc.4'
3
3
  end
4
4
 
@@ -185,7 +185,6 @@ module Skylight
185
185
 
186
186
  def should_flush?(now)
187
187
  return true if @config.constant_flush?
188
- t { "Checking if should flush at #{now} (@flush_at is #{@flush_at})" }
189
188
  now >= @flush_at
190
189
  end
191
190
 
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: 0.3.0.rc.3
4
+ version: 0.3.0.rc.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tilde, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-10 00:00:00.000000000 Z
11
+ date: 2014-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport