google-cloud-trace 0.23.0 → 0.23.1
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/service.rb +2 -2
- data/lib/google/cloud/trace/v1/doc/google/devtools/cloudtrace/v1/trace.rb +3 -3
- data/lib/google/cloud/trace/v1/doc/google/protobuf/timestamp.rb +3 -3
- data/lib/google/cloud/trace/v1/trace_service_client.rb +14 -11
- data/lib/google/cloud/trace/v1/trace_service_client_config.json +5 -5
- data/lib/google/cloud/trace/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aaf405ed09685f9a111f68ed743c0b0e2cac2de4
|
4
|
+
data.tar.gz: ae6f22a0aecf7254af4c5a10223f194fb7a50fc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f3bf509e60de09d22398e4f45d149a87c4634b6fa4ca19a12d0c3cbd257345f233f173f8ad60886aaf12139d7e5ea9cdf1fa1dd49c75cdeda9e19015a33db3b
|
7
|
+
data.tar.gz: d3b6333b148b0c08767a9a2a941a7f8368d12c1bdc23ed195fcba9b5c407de5ad09efcb531b41a9b749482d8723d96098c3ab71d8cf3a4383d4ed2add74d74d7
|
@@ -82,8 +82,8 @@ module Google
|
|
82
82
|
channel: channel,
|
83
83
|
timeout: timeout,
|
84
84
|
client_config: client_config,
|
85
|
-
|
86
|
-
|
85
|
+
lib_name: "gccl",
|
86
|
+
lib_version: Google::Cloud::Trace::VERSION)
|
87
87
|
end
|
88
88
|
attr_accessor :mocked_lowlevel_client
|
89
89
|
|
@@ -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,
|
@@ -184,4 +184,4 @@ module Google
|
|
184
184
|
end
|
185
185
|
end
|
186
186
|
end
|
187
|
-
end
|
187
|
+
end
|
@@ -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,
|
@@ -80,4 +80,4 @@ module Google
|
|
80
80
|
# inclusive.
|
81
81
|
class Timestamp; end
|
82
82
|
end
|
83
|
-
end
|
83
|
+
end
|
@@ -49,8 +49,6 @@ module Google
|
|
49
49
|
# The default port of the service.
|
50
50
|
DEFAULT_SERVICE_PORT = 443
|
51
51
|
|
52
|
-
CODE_GEN_NAME_VERSION = "gapic/0.1.0".freeze
|
53
|
-
|
54
52
|
DEFAULT_TIMEOUT = 30
|
55
53
|
|
56
54
|
PAGE_DESCRIPTORS = {
|
@@ -85,10 +83,6 @@ module Google
|
|
85
83
|
# or the specified config is missing data points.
|
86
84
|
# @param timeout [Numeric]
|
87
85
|
# The default timeout, in seconds, for calls made through this client.
|
88
|
-
# @param app_name [String]
|
89
|
-
# The codename of the calling service.
|
90
|
-
# @param app_version [String]
|
91
|
-
# The version of the calling service.
|
92
86
|
def initialize \
|
93
87
|
service_path: SERVICE_ADDRESS,
|
94
88
|
port: DEFAULT_SERVICE_PORT,
|
@@ -97,8 +91,10 @@ module Google
|
|
97
91
|
scopes: ALL_SCOPES,
|
98
92
|
client_config: {},
|
99
93
|
timeout: DEFAULT_TIMEOUT,
|
100
|
-
app_name:
|
101
|
-
app_version:
|
94
|
+
app_name: nil,
|
95
|
+
app_version: nil,
|
96
|
+
lib_name: nil,
|
97
|
+
lib_version: ""
|
102
98
|
# These require statements are intentionally placed here to initialize
|
103
99
|
# the gRPC module only when it's required.
|
104
100
|
# See https://github.com/googleapis/toolkit/issues/446
|
@@ -106,9 +102,16 @@ module Google
|
|
106
102
|
require "google/devtools/cloudtrace/v1/trace_services_pb"
|
107
103
|
|
108
104
|
|
109
|
-
|
110
|
-
"
|
111
|
-
|
105
|
+
if app_name || app_version
|
106
|
+
warn "`app_name` and `app_version` are no longer being used in the request headers."
|
107
|
+
end
|
108
|
+
|
109
|
+
google_api_client = "gl-ruby/#{RUBY_VERSION}"
|
110
|
+
google_api_client << " #{lib_name}/#{lib_version}" if lib_name
|
111
|
+
google_api_client << " gapic/ gax/#{Google::Gax::VERSION}"
|
112
|
+
google_api_client << " grpc/#{GRPC::VERSION}"
|
113
|
+
google_api_client.freeze
|
114
|
+
|
112
115
|
headers = { :"x-goog-api-client" => google_api_client }
|
113
116
|
client_config_file = Pathname.new(__dir__).join(
|
114
117
|
"trace_service_client_config.json"
|
@@ -2,11 +2,11 @@
|
|
2
2
|
"interfaces": {
|
3
3
|
"google.devtools.cloudtrace.v1.TraceService": {
|
4
4
|
"retry_codes": {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
"idempotent": [
|
6
|
+
"DEADLINE_EXCEEDED",
|
7
|
+
"UNAVAILABLE"
|
8
|
+
],
|
9
|
+
"non_idempotent": []
|
10
10
|
},
|
11
11
|
"retry_params": {
|
12
12
|
"default": {
|
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.
|
4
|
+
version: 0.23.1
|
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-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|