skylight-core 3.1.0.beta3 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/skylight/core/config.rb +2 -0
- data/lib/skylight/core/railtie.rb +1 -1
- data/lib/skylight/core/trace.rb +2 -1
- data/lib/skylight/core/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a23b4ee1f13cbafa7e98c105a8350a8580b900ba88c40c3cad7a7f58d4924178
|
|
4
|
+
data.tar.gz: 5029e85f3bbdffa3bc4a64cdd0a0826590d971854bb4d8486a61444958d2e54d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a28565ddbc62403ff6f223c524bd8454bc21515ea87decfb8784048915a0fddf86b3daddbc5e20f05052ca8d17a7973c7636e659c98a772a2e7c7222088ca0cf
|
|
7
|
+
data.tar.gz: f6783d6ecaf14dd98cfb11eb133e11d24b2c84e597930d28342c0f85f7e4b03cf4aee2e63fc4efb398d147dcedc211b7b48a92988abcca1d49f429ecd58e6448
|
data/lib/skylight/core/config.rb
CHANGED
|
@@ -15,6 +15,8 @@ module Skylight::Core
|
|
|
15
15
|
MUTEX = Mutex.new
|
|
16
16
|
|
|
17
17
|
def self.log_name; "Skylight" end
|
|
18
|
+
def self.service_name; log_name end
|
|
19
|
+
def self.support_email; "support@skylight.io" end
|
|
18
20
|
def self.env_matcher; /^(?:SK|SKYLIGHT)_(.+)$/ end
|
|
19
21
|
def self.env_prefix; "SKYLIGHT_" end
|
|
20
22
|
|
|
@@ -52,7 +52,7 @@ module Skylight::Core
|
|
|
52
52
|
end
|
|
53
53
|
elsif !Rails.env.test?
|
|
54
54
|
unless config.user_config.disable_env_warning?
|
|
55
|
-
log_warning config, "#{log_prefix} You are running in the #{Rails.env} environment but haven't added it to config.#{self.class.root_key}.environments, so no data will be sent to
|
|
55
|
+
log_warning config, "#{log_prefix} You are running in the #{Rails.env} environment but haven't added it to config.#{self.class.root_key}.environments, so no data will be sent to #{config.class.service_name} servers."
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
end
|
data/lib/skylight/core/trace.rb
CHANGED
|
@@ -134,6 +134,7 @@ module Skylight::Core
|
|
|
134
134
|
stop(span, Util::Clock.nanos - gc_time)
|
|
135
135
|
rescue => e
|
|
136
136
|
error "failed to close span; msg=%s; endpoint=%s", e.message, endpoint
|
|
137
|
+
log_trace "Original Backtrace:\n#{e.backtrace.join("\n")}"
|
|
137
138
|
broken!
|
|
138
139
|
nil
|
|
139
140
|
end
|
|
@@ -256,7 +257,7 @@ module Skylight::Core
|
|
|
256
257
|
end
|
|
257
258
|
end
|
|
258
259
|
|
|
259
|
-
message << "\nThis request will not be tracked. Please contact
|
|
260
|
+
message << "\nThis request will not be tracked. Please contact #{config.class.support_email} for more information."
|
|
260
261
|
|
|
261
262
|
error message
|
|
262
263
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: skylight-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.1.0
|
|
4
|
+
version: 3.1.0
|
|
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-10-
|
|
11
|
+
date: 2018-10-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -263,9 +263,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
263
263
|
version: 2.2.7
|
|
264
264
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
265
265
|
requirements:
|
|
266
|
-
- - "
|
|
266
|
+
- - ">="
|
|
267
267
|
- !ruby/object:Gem::Version
|
|
268
|
-
version:
|
|
268
|
+
version: '0'
|
|
269
269
|
requirements: []
|
|
270
270
|
rubyforge_project:
|
|
271
271
|
rubygems_version: 2.7.6
|