google-cloud-trace 0.41.3 → 0.41.4
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: e5e76ca34605bc5bce0f235e5c07d9c269b78066a50ec6b1fa7f193db7eb499a
|
4
|
+
data.tar.gz: 8a4595b72e419d627a5c3a3a75932e79980f88e264c707bcb02b6b73911ed9f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d485174652b1af1d5050ac9f4948348f2ba035dd6864075c59164bdab09419a79b10d789c7d55788446fbfd3190c8fef626bc1ce3fd8860b7a7a5f3121f9717
|
7
|
+
data.tar.gz: f05faeee499e0f9e2e590884e5df8c85741fdfe008f51520b9cc25c246c2f73da78d01bf8a39d0b02fd01c2790d6da17f049a3b163f80dfa85a9b2aa27e030ec
|
data/CHANGELOG.md
CHANGED
@@ -92,8 +92,8 @@ module Google
|
|
92
92
|
truncate_stack: REMOVE_NOTIFICATION_FRAMEWORK
|
93
93
|
end
|
94
94
|
cur_span.create_span event.name,
|
95
|
-
start_time: event.time,
|
96
|
-
end_time: event.end,
|
95
|
+
start_time: normalize_time(event.time),
|
96
|
+
end_time: normalize_time(event.end),
|
97
97
|
labels: labels
|
98
98
|
end
|
99
99
|
|
@@ -109,6 +109,19 @@ module Google
|
|
109
109
|
end
|
110
110
|
labels
|
111
111
|
end
|
112
|
+
|
113
|
+
##
|
114
|
+
# @private
|
115
|
+
#
|
116
|
+
# active support event's time is:
|
117
|
+
#
|
118
|
+
# - rails >= 7: timestamp in milliseconds
|
119
|
+
# - rails < 7: time
|
120
|
+
def self.normalize_time time_or_float
|
121
|
+
return time_or_float if Rails::VERSION::MAJOR < 7
|
122
|
+
|
123
|
+
Time.at time_or_float / 1000
|
124
|
+
end
|
112
125
|
end
|
113
126
|
end
|
114
127
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-trace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.41.
|
4
|
+
version: 0.41.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Azuma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -319,7 +319,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
319
319
|
- !ruby/object:Gem::Version
|
320
320
|
version: '0'
|
321
321
|
requirements: []
|
322
|
-
rubygems_version: 3.
|
322
|
+
rubygems_version: 3.3.14
|
323
323
|
signing_key:
|
324
324
|
specification_version: 4
|
325
325
|
summary: Application Instrumentation and API Client library for Stackdriver Trace
|