skylight 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/skylight/probes.rb +2 -0
- data/lib/skylight/trace.rb +11 -6
- data/lib/skylight/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08db1b03b0415378e94cba4a1e93f3856bec795769a3bee7786942fdfdb77a30'
|
4
|
+
data.tar.gz: 294a813cdcf2cfc7b343f7a2c2126628101c1c1a2b320e58c5286d79a5ded016
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c5d6044ebeb3d41030716f10642a422c0e3346be27b7820edefc4e0d0abd006b773686cf9a231f7f8300c22db2dd15e76175a18340f4d86aa11170199e7d799
|
7
|
+
data.tar.gz: 851f31e79a7e4d0924c6c02292a1aaf84c424f72dc8f0cfd6235f570a6358d7abb855df31e24bd0dc36c5ead5efc72a4ac78591195e9cd032deddeb2a46511bd
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## 1.6.1 (April 12, 2018)
|
2
|
+
|
3
|
+
* [IMPROVEMENT] Include endpoint name in error logging
|
4
|
+
* [BUGFIX] Make sure to correctly release broken traces
|
5
|
+
* [BUGFIX] Keep the `require` method private when overwriting
|
6
|
+
|
1
7
|
## 1.6.0 (March 21, 2018)
|
2
8
|
|
3
9
|
* [FEATURE] Time spent the Rails router is now identified separately in the trace
|
@@ -14,7 +20,7 @@
|
|
14
20
|
## 1.5.0 (December 6, 2017)
|
15
21
|
|
16
22
|
* [FEATURE] [Coach](https://github.com/gocardless/coach) instrumentation. Enabled automatically via ActiveSupport::Notifications.
|
17
|
-
* [FEATURE] Option to enable or disable agent by setting
|
23
|
+
* [FEATURE] Option to enable or disable agent by setting SKYLIGHT_ENABLED via ENV.
|
18
24
|
* [IMPROVEMENT] Better logging for certain error cases.
|
19
25
|
* [BUGFIX] Backport a SPEC compliance fix for older Rack::ETag to resolve case where the Middleware probe could cause empty traces.
|
20
26
|
* [BUGFIX] Fix a case where using the non-block form of `Skylight.instrument` with `Skylight.done` could cause lost trace data.
|
data/lib/skylight/probes.rb
CHANGED
data/lib/skylight/trace.rb
CHANGED
@@ -65,7 +65,7 @@ module Skylight
|
|
65
65
|
|
66
66
|
nil
|
67
67
|
rescue => e
|
68
|
-
error "failed to record span; msg=%s", e.message
|
68
|
+
error "failed to record span; msg=%s; endpoint=%s", e.message, endpoint
|
69
69
|
broken!
|
70
70
|
nil
|
71
71
|
end
|
@@ -90,7 +90,7 @@ module Skylight
|
|
90
90
|
|
91
91
|
start(now - gc_time, cat, title, desc)
|
92
92
|
rescue => e
|
93
|
-
error "failed to instrument span; msg=%s", e.message
|
93
|
+
error "failed to instrument span; msg=%s; endpoint=%s", e.message, endpoint
|
94
94
|
broken!
|
95
95
|
nil
|
96
96
|
end
|
@@ -100,7 +100,7 @@ module Skylight
|
|
100
100
|
return if broken?
|
101
101
|
stop(span, Util::Clock.nanos - gc_time)
|
102
102
|
rescue => e
|
103
|
-
error "failed to close span; msg=%s", e.message
|
103
|
+
error "failed to close span; msg=%s; endpoint=%s", e.message, endpoint
|
104
104
|
broken!
|
105
105
|
nil
|
106
106
|
end
|
@@ -128,16 +128,21 @@ module Skylight
|
|
128
128
|
end
|
129
129
|
|
130
130
|
def submit
|
131
|
-
return if broken?
|
132
|
-
|
133
131
|
t { "submitting trace" }
|
134
132
|
|
133
|
+
# This must always be called to clean up properly
|
134
|
+
release
|
135
|
+
|
136
|
+
if broken?
|
137
|
+
t { "broken, not submitting" }
|
138
|
+
return
|
139
|
+
end
|
140
|
+
|
135
141
|
if @submitted
|
136
142
|
t { "already submitted" }
|
137
143
|
return
|
138
144
|
end
|
139
145
|
|
140
|
-
release
|
141
146
|
@submitted = true
|
142
147
|
|
143
148
|
traced
|
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: 1.6.
|
4
|
+
version: 1.6.1
|
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-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
211
211
|
version: '0'
|
212
212
|
requirements: []
|
213
213
|
rubyforge_project:
|
214
|
-
rubygems_version: 2.7.
|
214
|
+
rubygems_version: 2.7.6
|
215
215
|
signing_key:
|
216
216
|
specification_version: 4
|
217
217
|
summary: Skylight is a smart profiler for Rails apps
|