skylight 1.4.2 → 1.4.3

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: 105d68740021ca155e6ec59ee20f1ec1ff573adf
4
- data.tar.gz: 8a22e7652fdbd11ccce601c0a01bb4fbfce04b5f
3
+ metadata.gz: 85741f51a63ae3c379cc67d73d6485e410092b73
4
+ data.tar.gz: e1d00fd14d49ec7b706bd9af4b4ea481c1c895d1
5
5
  SHA512:
6
- metadata.gz: 0f02ebef671a0bd6659f6a676dee1d575ff0eb1127b2b5abeadfbadf8afedf1dcb0d1c44d94aff4c7b3f916d3c8768cfb9f00efea5d9b6c8f23624036448cf76
7
- data.tar.gz: 87f36f9d25661fb9f4c686256a331ccad82476c1a65e1b885046bd05bc512826ff2b2ab31fee240306bfb9debad08b45d05383205137f13deda11c5d8fd8a640
6
+ metadata.gz: c3225e66c4fad5975de891882ab96b11c700b0e70bad78e520cc50a23c1b7676f997e9dffbca8f68f151a4154f3531e6e1e332938003358391900a73f4071bda
7
+ data.tar.gz: 52d864479ccae948f965a6fe41a76acb2a769b1acaf7fc6f0e3e7e42eca912bc132ae7dbe940d09d96c1bceb079daa2a14c3d4d8e709feb9e67824bf93a19989
@@ -1,3 +1,7 @@
1
+ ## 1.4.3 (October 18, 2017)
2
+
3
+ * [BUGFIX] In rare cases, Rails Middleware can be anonymous classes. We now handle those without raising an exception.
4
+
1
5
  ## 1.4.2 (October 11, 2017)
2
6
 
3
7
  * [BUGFIX] For experimental deploy tracking support, resolve an error that occurred if the Git SHA and description were not set.
@@ -25,9 +25,11 @@ module Skylight
25
25
  return call_without_sk(*args, &block) unless trace
26
26
 
27
27
  begin
28
- trace.endpoint = self.class.name
28
+ name = self.class.name || "Anonymous Middleware"
29
29
 
30
- span = Skylight.instrument(title: self.class.name, category: "rack.middleware")
30
+ trace.endpoint = name
31
+
32
+ span = Skylight.instrument(title: name, category: "rack.middleware")
31
33
  resp = call_without_sk(*args, &block)
32
34
 
33
35
  Skylight::Middleware.with_after_close(resp) { trace.done(span) }
@@ -1,4 +1,4 @@
1
1
  module Skylight
2
- VERSION = '1.4.2'
2
+ VERSION = '1.4.3'
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.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tilde, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-11 00:00:00.000000000 Z
11
+ date: 2017-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport