google-cloud-trace 0.23.2 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/trace/middleware.rb +4 -4
- data/lib/google/cloud/trace/project.rb +2 -2
- data/lib/google/cloud/trace/rails.rb +2 -2
- data/lib/google/cloud/trace/v1/doc/google/protobuf/timestamp.rb +3 -5
- data/lib/google/cloud/trace/v1/trace_service_client.rb +3 -2
- data/lib/google/cloud/trace/v1/trace_service_client_config.json +3 -1
- data/lib/google/cloud/trace/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52ba77dc84e6c63b8af9c9a1e5d7fe20761669b6
|
4
|
+
data.tar.gz: d0c89da25865eeec8ec5f6c7a50888e3fd6ace1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01528eb24304d620e880c4cb6a9feb96ec22e797e21fb5d66480b88622ae663d94de70187706fc17a14d5f1f594f8c11f29846d2a26286cc403048080bdcad87
|
7
|
+
data.tar.gz: 0fbe884b4b83ce69918c08c3700af291f641a448290a7e33b23305255f450008fceda5abd9b568213bc8643faa1da4406ca264a1511d8ecca5487d624779b99b
|
@@ -13,7 +13,7 @@
|
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
15
|
|
16
|
-
require "google/cloud/
|
16
|
+
require "google/cloud/env"
|
17
17
|
require "stackdriver/core/trace_context"
|
18
18
|
|
19
19
|
module Google
|
@@ -312,12 +312,12 @@ module Google
|
|
312
312
|
Google::Cloud::Trace::LabelKey.set_stack_trace labels,
|
313
313
|
skip_frames: 3
|
314
314
|
end
|
315
|
-
if Google::Cloud
|
315
|
+
if Google::Cloud.env.app_engine?
|
316
316
|
set_label labels, Google::Cloud::Trace::LabelKey::GAE_APP_MODULE,
|
317
|
-
Google::Cloud
|
317
|
+
Google::Cloud.env.app_engine_service_id
|
318
318
|
set_label labels,
|
319
319
|
Google::Cloud::Trace::LabelKey::GAE_APP_MODULE_VERSION,
|
320
|
-
Google::Cloud
|
320
|
+
Google::Cloud.env.app_engine_service_version
|
321
321
|
end
|
322
322
|
end
|
323
323
|
|
@@ -13,7 +13,7 @@
|
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
15
|
|
16
|
-
require "google/cloud/
|
16
|
+
require "google/cloud/env"
|
17
17
|
|
18
18
|
module Google
|
19
19
|
module Cloud
|
@@ -202,7 +202,7 @@ module Google
|
|
202
202
|
ENV["TRACE_PROJECT"] ||
|
203
203
|
ENV["GOOGLE_CLOUD_PROJECT"] ||
|
204
204
|
ENV["GCLOUD_PROJECT"] ||
|
205
|
-
Google::Cloud
|
205
|
+
Google::Cloud.env.project_id
|
206
206
|
end
|
207
207
|
|
208
208
|
protected
|
@@ -12,7 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
-
require "google/cloud/
|
15
|
+
require "google/cloud/env"
|
16
16
|
require "google/cloud/trace"
|
17
17
|
|
18
18
|
|
@@ -194,7 +194,7 @@ module Google
|
|
194
194
|
config.google_cloud.project_id ||
|
195
195
|
ENV["TRACE_PROJECT"] ||
|
196
196
|
ENV["GOOGLE_CLOUD_PROJECT"] ||
|
197
|
-
Google::Cloud
|
197
|
+
Google::Cloud.env.project_id
|
198
198
|
end
|
199
199
|
|
200
200
|
##
|
@@ -63,14 +63,12 @@ module Google
|
|
63
63
|
#
|
64
64
|
# Example 5: Compute Timestamp from current time in Python.
|
65
65
|
#
|
66
|
-
#
|
67
|
-
#
|
68
|
-
# nanos = int((now - seconds) * 10**9)
|
69
|
-
# timestamp = Timestamp(seconds=seconds, nanos=nanos)
|
66
|
+
# timestamp = Timestamp()
|
67
|
+
# timestamp.GetCurrentTime()
|
70
68
|
# @!attribute [rw] seconds
|
71
69
|
# @return [Integer]
|
72
70
|
# Represents seconds of UTC time since Unix epoch
|
73
|
-
# 1970-01-01T00:00:00Z. Must be from
|
71
|
+
# 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
74
72
|
# 9999-12-31T23:59:59Z inclusive.
|
75
73
|
# @!attribute [rw] nanos
|
76
74
|
# @return [Integer]
|
@@ -1,10 +1,10 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2017, Google Inc. All rights reserved.
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
5
5
|
# You may obtain a copy of the License at
|
6
6
|
#
|
7
|
-
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
8
|
#
|
9
9
|
# Unless required by applicable law or agreed to in writing, software
|
10
10
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
@@ -26,6 +26,7 @@ require "json"
|
|
26
26
|
require "pathname"
|
27
27
|
|
28
28
|
require "google/gax"
|
29
|
+
|
29
30
|
require "google/devtools/cloudtrace/v1/trace_pb"
|
30
31
|
|
31
32
|
module Google
|
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.
|
4
|
+
version: 0.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Azuma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0
|
19
|
+
version: '1.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0
|
26
|
+
version: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: stackdriver-core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '1.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: '1.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: google-gax
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -245,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
245
245
|
version: '0'
|
246
246
|
requirements: []
|
247
247
|
rubyforge_project:
|
248
|
-
rubygems_version: 2.6.
|
248
|
+
rubygems_version: 2.6.11
|
249
249
|
signing_key:
|
250
250
|
specification_version: 4
|
251
251
|
summary: Application Instrumentation and API Client library for Stackdriver Trace
|