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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1219b6ae71c3331396631a73e0866eb68d681eace43059b1c8690daca5e3634
4
- data.tar.gz: 1b95ca11947bd572ebf69d5677cb9450533da0f86745a5733af64c4b3bed6fad
3
+ metadata.gz: '08db1b03b0415378e94cba4a1e93f3856bec795769a3bee7786942fdfdb77a30'
4
+ data.tar.gz: 294a813cdcf2cfc7b343f7a2c2126628101c1c1a2b320e58c5286d79a5ded016
5
5
  SHA512:
6
- metadata.gz: 55c2b9c85310d9cb40afa744364759c854ac5b94787a285947986d85477b3df4119ff14da33b44e53fc2383499d61b70d0373aecbcebd9cbfbbe5d0fb11a022f
7
- data.tar.gz: ff24d96979a028ba73c8c7d9942ae312d63a6a2eefe49354648fe39832e7f189babd2a85a1f4e06b7de6857c3188efae97f4b1f5e7fff9c30efecafc7b60a94a
6
+ metadata.gz: 9c5d6044ebeb3d41030716f10642a422c0e3346be27b7820edefc4e0d0abd006b773686cf9a231f7f8300c22db2dd15e76175a18340f4d86aa11170199e7d799
7
+ data.tar.gz: 851f31e79a7e4d0924c6c02292a1aaf84c424f72dc8f0cfd6235f570a6358d7abb855df31e24bd0dc36c5ead5efc72a4ac78591195e9cd032deddeb2a46511bd
@@ -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 SKYLIGHT_ENABLE via ENV.
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.
@@ -75,6 +75,8 @@ end
75
75
  # Allow hooking require
76
76
  # @api private
77
77
  module ::Kernel
78
+ private
79
+
78
80
  alias require_without_sk require
79
81
 
80
82
  def require(name)
@@ -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
@@ -1,4 +1,4 @@
1
1
  module Skylight
2
- VERSION = '1.6.0'
2
+ VERSION = '1.6.1'
3
3
  end
4
4
 
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.0
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-03-21 00:00:00.000000000 Z
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.3
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