google_cloud_logging_extension 0.1.2 → 0.1.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e8e21269aec809bae86832647700f5c148b00e9509ec5d42d9bd95fb3888f67
|
4
|
+
data.tar.gz: 6a03bdc729fa8d729190b16290e226b7dbcab2ef2faba50284fbc35f7fd59c26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea952ef3015dc8c513fcbe46a73db810371723b8dd46ca2d533274405eb0d895eae8823fea9fb97f2d6e4cfcf6d0a2cdd49074fc49377e208da6bcb139164797
|
7
|
+
data.tar.gz: 6ecd6ec725e78de64d19c84643de3477ad262f8bd6351031e52103997bda99bbb3f534e8456e18f1045a0cc4289a84563a188111177438486fc5a53299db8581
|
data/Gemfile.lock
CHANGED
@@ -8,13 +8,16 @@ module Google
|
|
8
8
|
module Convert
|
9
9
|
class << self
|
10
10
|
# @param [Exception] exception
|
11
|
-
def exception_to_hash(exception)
|
12
|
-
{
|
11
|
+
def exception_to_hash(exception, root: false)
|
12
|
+
hash = {
|
13
13
|
class: exception.class.name,
|
14
|
-
message: exception.
|
14
|
+
message: exception.full_message(highlight: false),
|
15
|
+
summary: exception.message,
|
15
16
|
backtrace: exception.backtrace,
|
16
17
|
cause: exception.cause.is_a?(Exception) ? exception_to_hash(exception.cause) : exception.cause
|
17
18
|
}
|
19
|
+
hash['@type'] = 'type.googleapis.com/google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent' if root
|
20
|
+
hash
|
18
21
|
end
|
19
22
|
|
20
23
|
alias object_to_value_default object_to_value
|
@@ -47,7 +50,7 @@ module Google
|
|
47
50
|
def payload=(payload)
|
48
51
|
@payload = case payload
|
49
52
|
when Exception
|
50
|
-
Google::Cloud::Logging::Convert.exception_to_hash(payload)
|
53
|
+
Google::Cloud::Logging::Convert.exception_to_hash(payload, root: true)
|
51
54
|
else
|
52
55
|
payload
|
53
56
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_cloud_logging_extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ishotihadus
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Extension of google-cloud-logging-gem.
|
14
14
|
email:
|