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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d0370727c334dbc7c9b501e85688b983ee57978
4
- data.tar.gz: 4a573f11c7773577b8f69e7f1b99515b81da6d1a
3
+ metadata.gz: 52ba77dc84e6c63b8af9c9a1e5d7fe20761669b6
4
+ data.tar.gz: d0c89da25865eeec8ec5f6c7a50888e3fd6ace1d
5
5
  SHA512:
6
- metadata.gz: f8aca26d898631aa9ec91df43f1f3d6da808cf205ca2b7642873ac52416625ac08bae40528176376326d184456930ce49009bf62964b81fc1b5164db8e2cf962
7
- data.tar.gz: 4dd5a2d63d64ada7fc55d553507d511dc585338d8ba18462cb0f960a42cd4ec9a991a7f4f32ce9c3ebf5c6cc9bd148f57dbc6f2a267293b043d54084bc85fecf
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/core/environment"
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::Core::Environment.gae?
315
+ if Google::Cloud.env.app_engine?
316
316
  set_label labels, Google::Cloud::Trace::LabelKey::GAE_APP_MODULE,
317
- Google::Cloud::Core::Environment.gae_module_id
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::Core::Environment.gae_module_version
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/core/environment"
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::Core::Environment.project_id
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/core/environment"
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::Core::Environment.project_id
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
- # now = time.time()
67
- # seconds = int(now)
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 from 0001-01-01T00:00:00Z to
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 2016 Google Inc. All rights reserved.
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
- # http://www.apache.org/licenses/LICENSE-2.0
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
@@ -6,7 +6,9 @@
6
6
  "DEADLINE_EXCEEDED",
7
7
  "UNAVAILABLE"
8
8
  ],
9
- "non_idempotent": []
9
+ "non_idempotent": [
10
+ "UNAVAILABLE"
11
+ ]
10
12
  },
11
13
  "retry_params": {
12
14
  "default": {
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Trace
19
- VERSION = "0.23.2".freeze
19
+ VERSION = "0.24.0".freeze
20
20
  end
21
21
  end
22
22
  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.23.2
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-03-04 00:00:00.000000000 Z
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.21.1
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.21.1
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: 0.21.0
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: 0.21.0
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.10
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