signalfx-tracing 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/lib/signalfx/tracing/span.rb +11 -5
- data/lib/signalfx/tracing/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb69751bf1eff41423dfb43a0470b00194ee39ca02cd1647eecbe845e31e0472
|
4
|
+
data.tar.gz: c3d1bb44a2fda8b7aa96b68ed98be8e1d6a23a502f570e7e04eb5ef42f413b1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 977d6e639a0bd2098d23147cee9de114fca97e8156f67e186775a457c380a11ac52169765c3a5d796f170b89e8f4c04971366f6382428ddc4a015ccd8de1df33
|
7
|
+
data.tar.gz: c475b7183dcd21489595eb46d0168550b0b0f4b40bf0a9e8fe1f2f6321b9a4e5feee53913c93ba73d746f1ad3c6b89fd3cc4c1aa0f921542554ebf951f533cd0
|
@@ -5,13 +5,19 @@ module SignalFx
|
|
5
5
|
module Span
|
6
6
|
def record_exception(exception, record_error=true)
|
7
7
|
set_tag('error', true) if record_error
|
8
|
-
|
9
|
-
|
8
|
+
|
9
|
+
fields = {
|
10
|
+
:event => 'error',
|
10
11
|
:'error.kind' => exception.class.to_s,
|
11
12
|
:'error.object' => exception,
|
12
|
-
message
|
13
|
-
|
14
|
-
|
13
|
+
:message => exception.message,
|
14
|
+
}
|
15
|
+
|
16
|
+
if not exception.backtrace.nil?
|
17
|
+
fields[:stack] = exception.backtrace.join('\n')
|
18
|
+
end
|
19
|
+
|
20
|
+
log_kv(**fields)
|
15
21
|
end
|
16
22
|
end
|
17
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: signalfx-tracing
|
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
|
- SignalFx, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|