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 +4 -4
- data/ext/extconf.rb +2 -2
- data/lib/skylight.rb +1 -1
- data/lib/skylight/messages.rb +4 -4
- data/lib/skylight/messages/trace.rb +1 -1
- data/lib/skylight/railtie.rb +3 -3
- data/lib/skylight/util/logging.rb +2 -2
- data/lib/skylight/version.rb +1 -1
- data/lib/skylight/worker/collector.rb +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f46b600abb95cdab8144ba74c5bb9c38f57d7ba
|
4
|
+
data.tar.gz: 92d250e89d6a3c0e8b8abba4505bdca008ecc862
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5afb3d009e3b5b0bddc15e96ed657ff37a39413d1332206e35f782dba7fd356c0170a7d3624fee391fb9dffe3ff8d58fd792dfe41dc0f1916e739b5342038d5
|
7
|
+
data.tar.gz: e48c91c0d993b1e07d4adc21e4830c07d65f92497fc0564c3cbf8f17dfc3991b262043de18097202ec52e2f76f13bcb59e0f4c43288a0f28a30ceb94b5c98fb0
|
data/ext/extconf.rb
CHANGED
@@ -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
|
|
data/lib/skylight.rb
CHANGED
@@ -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
|
|
data/lib/skylight/messages.rb
CHANGED
@@ -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::
|
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::
|
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
|
data/lib/skylight/railtie.rb
CHANGED
@@ -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
|
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: 0.3.0.rc.
|
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-
|
11
|
+
date: 2014-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|