google-cloud-error_reporting 0.23.1 → 0.23.2

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: fd3cc887ce3fe88bed24393d3f3e39f85676aa67
4
- data.tar.gz: a2e7afcf10234848e2c9aac17db2472a6ff3dbf9
3
+ metadata.gz: f426bb95d8e046bac3ebfcb9e220e8bad1bd8a88
4
+ data.tar.gz: 4e594e1bb41da61cd0122afb8706b2111fcdd848
5
5
  SHA512:
6
- metadata.gz: ac9a676b9b524658aae05794f51ccf72a31c0172f080362a40cb47a4eaf93182df3be74a5b211ad8f680c9c30e0a12fe61cc62b5ce639502db12a3e2db6e4d91
7
- data.tar.gz: 86df4475c252c6bb87bcbec470fca6201286314e0824d5e73fc5c5e50728c0d7d3f908aff0d12796ab89dad22b8f3c008d34c0af520af727a88c7b9c6d5fa1ed
6
+ metadata.gz: 6ffcc00abe43ba2c77f2ce5f8a0630106a532d2daff16c438cc93d06ee8eb6f53cf37ad607325befd7400e55f3d6aa2d4aaf8df627e215463609e267da30ed1f
7
+ data.tar.gz: 6bdb039f2f2cd1287d93cf5970bdfcbc865ee30a07f25230e5fe9be9f7fa5a25b94d771b896b2ed30dbe93b458b8e0579d9afa7120f2817f15b82860ac5965ba
@@ -64,9 +64,7 @@ module Google
64
64
  service_version = er_config.service_version
65
65
 
66
66
  error_reporting = V1beta1::ReportErrorsServiceClient.new(
67
- channel: channel,
68
- app_name: service_name,
69
- app_version: service_version
67
+ channel: channel
70
68
  )
71
69
 
72
70
  # In later versions of Rails, ActionDispatch::DebugExceptions is
@@ -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,
@@ -154,4 +154,4 @@ module Google
154
154
  end
155
155
  end
156
156
  end
157
- end
157
+ end
@@ -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,
@@ -309,4 +309,4 @@ module Google
309
309
  end
310
310
  end
311
311
  end
312
- end
312
+ end
@@ -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,
@@ -54,4 +54,4 @@ module Google
54
54
  end
55
55
  end
56
56
  end
57
- end
57
+ end
@@ -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,
@@ -68,4 +68,4 @@ module Google
68
68
  # to +999,999,999 inclusive.
69
69
  class Duration; end
70
70
  end
71
- end
71
+ end
@@ -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,
@@ -80,4 +80,4 @@ module Google
80
80
  # inclusive.
81
81
  class Timestamp; end
82
82
  end
83
- end
83
+ end
@@ -45,8 +45,6 @@ module Google
45
45
  # The default port of the service.
46
46
  DEFAULT_SERVICE_PORT = 443
47
47
 
48
- CODE_GEN_NAME_VERSION = "gapic/0.1.0".freeze
49
-
50
48
  DEFAULT_TIMEOUT = 30
51
49
 
52
50
  # The scopes needed to make gRPC calls to all of the methods defined in
@@ -101,10 +99,6 @@ module Google
101
99
  # or the specified config is missing data points.
102
100
  # @param timeout [Numeric]
103
101
  # The default timeout, in seconds, for calls made through this client.
104
- # @param app_name [String]
105
- # The codename of the calling service.
106
- # @param app_version [String]
107
- # The version of the calling service.
108
102
  def initialize \
109
103
  service_path: SERVICE_ADDRESS,
110
104
  port: DEFAULT_SERVICE_PORT,
@@ -113,8 +107,10 @@ module Google
113
107
  scopes: ALL_SCOPES,
114
108
  client_config: {},
115
109
  timeout: DEFAULT_TIMEOUT,
116
- app_name: "gax",
117
- app_version: Google::Gax::VERSION
110
+ app_name: nil,
111
+ app_version: nil,
112
+ lib_name: nil,
113
+ lib_version: ""
118
114
  # These require statements are intentionally placed here to initialize
119
115
  # the gRPC module only when it's required.
120
116
  # See https://github.com/googleapis/toolkit/issues/446
@@ -122,9 +118,16 @@ module Google
122
118
  require "google/devtools/clouderrorreporting/v1beta1/error_group_service_services_pb"
123
119
 
124
120
 
125
- google_api_client = "#{app_name}/#{app_version} " \
126
- "#{CODE_GEN_NAME_VERSION} gax/#{Google::Gax::VERSION} " \
127
- "ruby/#{RUBY_VERSION}".freeze
121
+ if app_name || app_version
122
+ warn "`app_name` and `app_version` are no longer being used in the request headers."
123
+ end
124
+
125
+ google_api_client = "gl-ruby/#{RUBY_VERSION}"
126
+ google_api_client << " #{lib_name}/#{lib_version}" if lib_name
127
+ google_api_client << " gapic/ gax/#{Google::Gax::VERSION}"
128
+ google_api_client << " grpc/#{GRPC::VERSION}"
129
+ google_api_client.freeze
130
+
128
131
  headers = { :"x-goog-api-client" => google_api_client }
129
132
  client_config_file = Pathname.new(__dir__).join(
130
133
  "error_group_service_client_config.json"
@@ -2,11 +2,11 @@
2
2
  "interfaces": {
3
3
  "google.devtools.clouderrorreporting.v1beta1.ErrorGroupService": {
4
4
  "retry_codes": {
5
- "idempotent": [
6
- "DEADLINE_EXCEEDED",
7
- "UNAVAILABLE"
8
- ],
9
- "non_idempotent": []
5
+ "idempotent": [
6
+ "DEADLINE_EXCEEDED",
7
+ "UNAVAILABLE"
8
+ ],
9
+ "non_idempotent": []
10
10
  },
11
11
  "retry_params": {
12
12
  "default": {
@@ -46,8 +46,6 @@ module Google
46
46
  # The default port of the service.
47
47
  DEFAULT_SERVICE_PORT = 443
48
48
 
49
- CODE_GEN_NAME_VERSION = "gapic/0.1.0".freeze
50
-
51
49
  DEFAULT_TIMEOUT = 30
52
50
 
53
51
  PAGE_DESCRIPTORS = {
@@ -106,10 +104,6 @@ module Google
106
104
  # or the specified config is missing data points.
107
105
  # @param timeout [Numeric]
108
106
  # The default timeout, in seconds, for calls made through this client.
109
- # @param app_name [String]
110
- # The codename of the calling service.
111
- # @param app_version [String]
112
- # The version of the calling service.
113
107
  def initialize \
114
108
  service_path: SERVICE_ADDRESS,
115
109
  port: DEFAULT_SERVICE_PORT,
@@ -118,8 +112,10 @@ module Google
118
112
  scopes: ALL_SCOPES,
119
113
  client_config: {},
120
114
  timeout: DEFAULT_TIMEOUT,
121
- app_name: "gax",
122
- app_version: Google::Gax::VERSION
115
+ app_name: nil,
116
+ app_version: nil,
117
+ lib_name: nil,
118
+ lib_version: ""
123
119
  # These require statements are intentionally placed here to initialize
124
120
  # the gRPC module only when it's required.
125
121
  # See https://github.com/googleapis/toolkit/issues/446
@@ -127,9 +123,16 @@ module Google
127
123
  require "google/devtools/clouderrorreporting/v1beta1/error_stats_service_services_pb"
128
124
 
129
125
 
130
- google_api_client = "#{app_name}/#{app_version} " \
131
- "#{CODE_GEN_NAME_VERSION} gax/#{Google::Gax::VERSION} " \
132
- "ruby/#{RUBY_VERSION}".freeze
126
+ if app_name || app_version
127
+ warn "`app_name` and `app_version` are no longer being used in the request headers."
128
+ end
129
+
130
+ google_api_client = "gl-ruby/#{RUBY_VERSION}"
131
+ google_api_client << " #{lib_name}/#{lib_version}" if lib_name
132
+ google_api_client << " gapic/ gax/#{Google::Gax::VERSION}"
133
+ google_api_client << " grpc/#{GRPC::VERSION}"
134
+ google_api_client.freeze
135
+
133
136
  headers = { :"x-goog-api-client" => google_api_client }
134
137
  client_config_file = Pathname.new(__dir__).join(
135
138
  "error_stats_service_client_config.json"
@@ -2,11 +2,11 @@
2
2
  "interfaces": {
3
3
  "google.devtools.clouderrorreporting.v1beta1.ErrorStatsService": {
4
4
  "retry_codes": {
5
- "idempotent": [
6
- "DEADLINE_EXCEEDED",
7
- "UNAVAILABLE"
8
- ],
9
- "non_idempotent": []
5
+ "idempotent": [
6
+ "DEADLINE_EXCEEDED",
7
+ "UNAVAILABLE"
8
+ ],
9
+ "non_idempotent": []
10
10
  },
11
11
  "retry_params": {
12
12
  "default": {
@@ -45,8 +45,6 @@ module Google
45
45
  # The default port of the service.
46
46
  DEFAULT_SERVICE_PORT = 443
47
47
 
48
- CODE_GEN_NAME_VERSION = "gapic/0.1.0".freeze
49
-
50
48
  DEFAULT_TIMEOUT = 30
51
49
 
52
50
  # The scopes needed to make gRPC calls to all of the methods defined in
@@ -92,10 +90,6 @@ module Google
92
90
  # or the specified config is missing data points.
93
91
  # @param timeout [Numeric]
94
92
  # The default timeout, in seconds, for calls made through this client.
95
- # @param app_name [String]
96
- # The codename of the calling service.
97
- # @param app_version [String]
98
- # The version of the calling service.
99
93
  def initialize \
100
94
  service_path: SERVICE_ADDRESS,
101
95
  port: DEFAULT_SERVICE_PORT,
@@ -104,8 +98,10 @@ module Google
104
98
  scopes: ALL_SCOPES,
105
99
  client_config: {},
106
100
  timeout: DEFAULT_TIMEOUT,
107
- app_name: "gax",
108
- app_version: Google::Gax::VERSION
101
+ app_name: nil,
102
+ app_version: nil,
103
+ lib_name: nil,
104
+ lib_version: ""
109
105
  # These require statements are intentionally placed here to initialize
110
106
  # the gRPC module only when it's required.
111
107
  # See https://github.com/googleapis/toolkit/issues/446
@@ -113,9 +109,16 @@ module Google
113
109
  require "google/devtools/clouderrorreporting/v1beta1/report_errors_service_services_pb"
114
110
 
115
111
 
116
- google_api_client = "#{app_name}/#{app_version} " \
117
- "#{CODE_GEN_NAME_VERSION} gax/#{Google::Gax::VERSION} " \
118
- "ruby/#{RUBY_VERSION}".freeze
112
+ if app_name || app_version
113
+ warn "`app_name` and `app_version` are no longer being used in the request headers."
114
+ end
115
+
116
+ google_api_client = "gl-ruby/#{RUBY_VERSION}"
117
+ google_api_client << " #{lib_name}/#{lib_version}" if lib_name
118
+ google_api_client << " gapic/ gax/#{Google::Gax::VERSION}"
119
+ google_api_client << " grpc/#{GRPC::VERSION}"
120
+ google_api_client.freeze
121
+
119
122
  headers = { :"x-goog-api-client" => google_api_client }
120
123
  client_config_file = Pathname.new(__dir__).join(
121
124
  "report_errors_service_client_config.json"
@@ -2,11 +2,11 @@
2
2
  "interfaces": {
3
3
  "google.devtools.clouderrorreporting.v1beta1.ReportErrorsService": {
4
4
  "retry_codes": {
5
- "idempotent": [
6
- "DEADLINE_EXCEEDED",
7
- "UNAVAILABLE"
8
- ],
9
- "non_idempotent": []
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-error_reporting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.1
4
+ version: 0.23.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-23 00:00:00.000000000 Z
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