google-cloud-logging 1.6.5 → 1.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1cc7c516362b6eab646e6b363e80f7f6539d7111b9f0128477898de57c0562b
4
- data.tar.gz: acae4acb352b0757d0867f66c45d23d15901603160e3f79483d4f53eb8a61f77
3
+ metadata.gz: cb805e0101e2f5b5e9f9c21e4d67c46db3e1898940a3d8df972b934a295411d8
4
+ data.tar.gz: c67765781081152b9c36aa3f5e453b1cc333666e39026c408ec61b0b2acb9ae5
5
5
  SHA512:
6
- metadata.gz: 7009e843a5d8372e699d829d87881555fe9744beccbf5d2059562c73b1a7e5ce0416be7a62d5f2fc2c88e8145c043bee399db995360d4e6bce1b3d8efe55063e
7
- data.tar.gz: a90732728e4dd94191dc965b0483d492723b7a19428174956468bdafd0993a21585b4dc93ac7846e2da5ced5aaacf0a472754c8029e47b4e00db7d77df0d8024
6
+ metadata.gz: 8f660fb238f57e2df1b9271fce3e2efc4838c37885381bf7b7e39152244a8ed887c8920f577877835f2d18a14fb7f97c37177cb277c5ee14c985f72c30de0b4e
7
+ data.tar.gz: 2d78590be1672eeabd60e8bb2aaf5427950f32d4fc2a990ec691e9b2876a9df8d6111485ad978886d6ceb37f9e37d49f553d018b5c23245c9453787469f0f8fd
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 1.6.6 / 2019-07-31
4
+
5
+ * Fix max threads setting in thread pools
6
+ * Thread pools once again limit the number of threads allocated.
7
+ * Update documentation links
8
+
3
9
  ### 1.6.5 / 2019-07-08
4
10
 
5
11
  * Support overriding service host and port in the low-level interface.
@@ -16,7 +16,7 @@ if you want to run on a non Google Cloud environment or you want to customize
16
16
  the default behavior.
17
17
 
18
18
  See the
19
- [Configuration Guide](https://googleapis.github.io/google-cloud-ruby/#/docs/stackdriver/guides/instrumentation_configuration)
19
+ [Configuration Guide](https://googleapis.dev/ruby/stackdriver/latest/file.INSTRUMENTATION_CONFIGURATION.html)
20
20
  for full configuration parameters.
21
21
 
22
22
  ## Using instrumentation with Ruby on Rails
data/LOGGING.md CHANGED
@@ -5,7 +5,7 @@ To enable logging for this library, set the logger for the underlying
5
5
  that you set may be a Ruby stdlib
6
6
  [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as
7
7
  shown below, or a
8
- [`Google::Cloud::Logging::Logger`](https://googleapis.github.io/google-cloud-ruby/docs/google-cloud-logging/latest/Google/Cloud/Logging/Logger)
8
+ [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
9
9
  that will write logs to [Stackdriver
10
10
  Logging](https://cloud.google.com/logging/). See
11
11
  [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
@@ -152,7 +152,7 @@ module Google
152
152
  # single argument. (See {AsyncWriter.on_error}.)
153
153
  #
154
154
  # See the [Configuration
155
- # Guide](https://googleapis.github.io/google-cloud-ruby/docs/stackdriver/latest/file.INSTRUMENTATION_CONFIGURATION)
155
+ # Guide](https://googleapis.dev/ruby/stackdriver/latest/file.INSTRUMENTATION_CONFIGURATION.html)
156
156
  # for full configuration parameters.
157
157
  #
158
158
  # @return [Google::Cloud::Config] The configuration object
@@ -151,9 +151,8 @@ module Google
151
151
  @batch.add entry
152
152
  end
153
153
 
154
- @thread_pool ||= \
155
- Concurrent::CachedThreadPool.new max_threads: @threads,
156
- max_queue: @max_queue
154
+ @thread_pool ||= Concurrent::ThreadPoolExecutor.new \
155
+ max_threads: @threads, max_queue: @max_queue
157
156
  @thread ||= Thread.new { run_background }
158
157
 
159
158
  publish_batch! if @batch.ready?
@@ -48,7 +48,7 @@ module Google
48
48
  # initialized. The callback takes no arguments. Optional.
49
49
  # @param [Hash] kwargs Hash of configuration settings. Used for
50
50
  # backward API compatibility. See the [Configuration
51
- # Guide](https://googleapis.github.io/google-cloud-ruby/docs/stackdriver/latest/file.INSTRUMENTATION_CONFIGURATION)
51
+ # Guide](https://googleapis.dev/ruby/stackdriver/latest/file.INSTRUMENTATION_CONFIGURATION.html)
52
52
  # for the prefered way to set configuration parameters.
53
53
  #
54
54
  # @return [Google::Cloud::Logging::Middleware] A new
@@ -41,7 +41,7 @@ module Google
41
41
  # before the `Rails::Rack::Logger Middleware`, which allows it to set the
42
42
  # `env['rack.logger']` in place of Rails's default logger.
43
43
  # See the [Configuration
44
- # Guide](https://googleapis.github.io/google-cloud-ruby/docs/stackdriver/latest/file.INSTRUMENTATION_CONFIGURATION)
44
+ # Guide](https://googleapis.dev/ruby/stackdriver/latest/file.INSTRUMENTATION_CONFIGURATION.html)
45
45
  # on how to configure the Railtie and Middleware.
46
46
  #
47
47
  class Railtie < ::Rails::Railtie
@@ -77,12 +77,66 @@ module Google
77
77
  ].freeze
78
78
 
79
79
 
80
+ BILLING_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
81
+ "billingAccounts/{billing_account}"
82
+ )
83
+
84
+ private_constant :BILLING_PATH_TEMPLATE
85
+
86
+ BILLING_EXCLUSION_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
87
+ "billingAccounts/{billing_account}/exclusions/{exclusion}"
88
+ )
89
+
90
+ private_constant :BILLING_EXCLUSION_PATH_TEMPLATE
91
+
92
+ BILLING_SINK_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
93
+ "billingAccounts/{billing_account}/sinks/{sink}"
94
+ )
95
+
96
+ private_constant :BILLING_SINK_PATH_TEMPLATE
97
+
80
98
  EXCLUSION_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
81
99
  "projects/{project}/exclusions/{exclusion}"
82
100
  )
83
101
 
84
102
  private_constant :EXCLUSION_PATH_TEMPLATE
85
103
 
104
+ FOLDER_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
105
+ "folders/{folder}"
106
+ )
107
+
108
+ private_constant :FOLDER_PATH_TEMPLATE
109
+
110
+ FOLDER_EXCLUSION_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
111
+ "folders/{folder}/exclusions/{exclusion}"
112
+ )
113
+
114
+ private_constant :FOLDER_EXCLUSION_PATH_TEMPLATE
115
+
116
+ FOLDER_SINK_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
117
+ "folders/{folder}/sinks/{sink}"
118
+ )
119
+
120
+ private_constant :FOLDER_SINK_PATH_TEMPLATE
121
+
122
+ ORGANIZATION_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
123
+ "organizations/{organization}"
124
+ )
125
+
126
+ private_constant :ORGANIZATION_PATH_TEMPLATE
127
+
128
+ ORGANIZATION_EXCLUSION_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
129
+ "organizations/{organization}/exclusions/{exclusion}"
130
+ )
131
+
132
+ private_constant :ORGANIZATION_EXCLUSION_PATH_TEMPLATE
133
+
134
+ ORGANIZATION_SINK_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
135
+ "organizations/{organization}/sinks/{sink}"
136
+ )
137
+
138
+ private_constant :ORGANIZATION_SINK_PATH_TEMPLATE
139
+
86
140
  PROJECT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
87
141
  "projects/{project}"
88
142
  )
@@ -95,6 +149,37 @@ module Google
95
149
 
96
150
  private_constant :SINK_PATH_TEMPLATE
97
151
 
152
+ # Returns a fully-qualified billing resource name string.
153
+ # @param billing_account [String]
154
+ # @return [String]
155
+ def self.billing_path billing_account
156
+ BILLING_PATH_TEMPLATE.render(
157
+ :"billing_account" => billing_account
158
+ )
159
+ end
160
+
161
+ # Returns a fully-qualified billing_exclusion resource name string.
162
+ # @param billing_account [String]
163
+ # @param exclusion [String]
164
+ # @return [String]
165
+ def self.billing_exclusion_path billing_account, exclusion
166
+ BILLING_EXCLUSION_PATH_TEMPLATE.render(
167
+ :"billing_account" => billing_account,
168
+ :"exclusion" => exclusion
169
+ )
170
+ end
171
+
172
+ # Returns a fully-qualified billing_sink resource name string.
173
+ # @param billing_account [String]
174
+ # @param sink [String]
175
+ # @return [String]
176
+ def self.billing_sink_path billing_account, sink
177
+ BILLING_SINK_PATH_TEMPLATE.render(
178
+ :"billing_account" => billing_account,
179
+ :"sink" => sink
180
+ )
181
+ end
182
+
98
183
  # Returns a fully-qualified exclusion resource name string.
99
184
  # @param project [String]
100
185
  # @param exclusion [String]
@@ -106,6 +191,68 @@ module Google
106
191
  )
107
192
  end
108
193
 
194
+ # Returns a fully-qualified folder resource name string.
195
+ # @param folder [String]
196
+ # @return [String]
197
+ def self.folder_path folder
198
+ FOLDER_PATH_TEMPLATE.render(
199
+ :"folder" => folder
200
+ )
201
+ end
202
+
203
+ # Returns a fully-qualified folder_exclusion resource name string.
204
+ # @param folder [String]
205
+ # @param exclusion [String]
206
+ # @return [String]
207
+ def self.folder_exclusion_path folder, exclusion
208
+ FOLDER_EXCLUSION_PATH_TEMPLATE.render(
209
+ :"folder" => folder,
210
+ :"exclusion" => exclusion
211
+ )
212
+ end
213
+
214
+ # Returns a fully-qualified folder_sink resource name string.
215
+ # @param folder [String]
216
+ # @param sink [String]
217
+ # @return [String]
218
+ def self.folder_sink_path folder, sink
219
+ FOLDER_SINK_PATH_TEMPLATE.render(
220
+ :"folder" => folder,
221
+ :"sink" => sink
222
+ )
223
+ end
224
+
225
+ # Returns a fully-qualified organization resource name string.
226
+ # @param organization [String]
227
+ # @return [String]
228
+ def self.organization_path organization
229
+ ORGANIZATION_PATH_TEMPLATE.render(
230
+ :"organization" => organization
231
+ )
232
+ end
233
+
234
+ # Returns a fully-qualified organization_exclusion resource name string.
235
+ # @param organization [String]
236
+ # @param exclusion [String]
237
+ # @return [String]
238
+ def self.organization_exclusion_path organization, exclusion
239
+ ORGANIZATION_EXCLUSION_PATH_TEMPLATE.render(
240
+ :"organization" => organization,
241
+ :"exclusion" => exclusion
242
+ )
243
+ end
244
+
245
+ # Returns a fully-qualified organization_sink resource name string.
246
+ # @param organization [String]
247
+ # @param sink [String]
248
+ # @return [String]
249
+ def self.organization_sink_path organization, sink
250
+ ORGANIZATION_SINK_PATH_TEMPLATE.render(
251
+ :"organization" => organization,
252
+ :"sink" => sink
253
+ )
254
+ end
255
+
109
256
  # Returns a fully-qualified project resource name string.
110
257
  # @param project [String]
111
258
  # @return [String]
@@ -92,18 +92,94 @@ module Google
92
92
  ].freeze
93
93
 
94
94
 
95
+ BILLING_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
96
+ "billingAccounts/{billing_account}"
97
+ )
98
+
99
+ private_constant :BILLING_PATH_TEMPLATE
100
+
101
+ BILLING_LOG_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
102
+ "billingAccounts/{billing_account}/logs/{log}"
103
+ )
104
+
105
+ private_constant :BILLING_LOG_PATH_TEMPLATE
106
+
107
+ FOLDER_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
108
+ "folders/{folder}"
109
+ )
110
+
111
+ private_constant :FOLDER_PATH_TEMPLATE
112
+
113
+ FOLDER_LOG_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
114
+ "folders/{folder}/logs/{log}"
115
+ )
116
+
117
+ private_constant :FOLDER_LOG_PATH_TEMPLATE
118
+
95
119
  LOG_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
96
120
  "projects/{project}/logs/{log}"
97
121
  )
98
122
 
99
123
  private_constant :LOG_PATH_TEMPLATE
100
124
 
125
+ ORGANIZATION_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
126
+ "organizations/{organization}"
127
+ )
128
+
129
+ private_constant :ORGANIZATION_PATH_TEMPLATE
130
+
131
+ ORGANIZATION_LOG_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
132
+ "organizations/{organization}/logs/{log}"
133
+ )
134
+
135
+ private_constant :ORGANIZATION_LOG_PATH_TEMPLATE
136
+
101
137
  PROJECT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
102
138
  "projects/{project}"
103
139
  )
104
140
 
105
141
  private_constant :PROJECT_PATH_TEMPLATE
106
142
 
143
+ # Returns a fully-qualified billing resource name string.
144
+ # @param billing_account [String]
145
+ # @return [String]
146
+ def self.billing_path billing_account
147
+ BILLING_PATH_TEMPLATE.render(
148
+ :"billing_account" => billing_account
149
+ )
150
+ end
151
+
152
+ # Returns a fully-qualified billing_log resource name string.
153
+ # @param billing_account [String]
154
+ # @param log [String]
155
+ # @return [String]
156
+ def self.billing_log_path billing_account, log
157
+ BILLING_LOG_PATH_TEMPLATE.render(
158
+ :"billing_account" => billing_account,
159
+ :"log" => log
160
+ )
161
+ end
162
+
163
+ # Returns a fully-qualified folder resource name string.
164
+ # @param folder [String]
165
+ # @return [String]
166
+ def self.folder_path folder
167
+ FOLDER_PATH_TEMPLATE.render(
168
+ :"folder" => folder
169
+ )
170
+ end
171
+
172
+ # Returns a fully-qualified folder_log resource name string.
173
+ # @param folder [String]
174
+ # @param log [String]
175
+ # @return [String]
176
+ def self.folder_log_path folder, log
177
+ FOLDER_LOG_PATH_TEMPLATE.render(
178
+ :"folder" => folder,
179
+ :"log" => log
180
+ )
181
+ end
182
+
107
183
  # Returns a fully-qualified log resource name string.
108
184
  # @param project [String]
109
185
  # @param log [String]
@@ -115,6 +191,26 @@ module Google
115
191
  )
116
192
  end
117
193
 
194
+ # Returns a fully-qualified organization resource name string.
195
+ # @param organization [String]
196
+ # @return [String]
197
+ def self.organization_path organization
198
+ ORGANIZATION_PATH_TEMPLATE.render(
199
+ :"organization" => organization
200
+ )
201
+ end
202
+
203
+ # Returns a fully-qualified organization_log resource name string.
204
+ # @param organization [String]
205
+ # @param log [String]
206
+ # @return [String]
207
+ def self.organization_log_path organization, log
208
+ ORGANIZATION_LOG_PATH_TEMPLATE.render(
209
+ :"organization" => organization,
210
+ :"log" => log
211
+ )
212
+ end
213
+
118
214
  # Returns a fully-qualified project resource name string.
119
215
  # @param project [String]
120
216
  # @return [String]
@@ -72,18 +72,54 @@ module Google
72
72
  ].freeze
73
73
 
74
74
 
75
+ BILLING_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
76
+ "billingAccounts/{billing_account}"
77
+ )
78
+
79
+ private_constant :BILLING_PATH_TEMPLATE
80
+
81
+ FOLDER_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
82
+ "folders/{folder}"
83
+ )
84
+
85
+ private_constant :FOLDER_PATH_TEMPLATE
86
+
75
87
  METRIC_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
76
88
  "projects/{project}/metrics/{metric}"
77
89
  )
78
90
 
79
91
  private_constant :METRIC_PATH_TEMPLATE
80
92
 
93
+ ORGANIZATION_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
94
+ "organizations/{organization}"
95
+ )
96
+
97
+ private_constant :ORGANIZATION_PATH_TEMPLATE
98
+
81
99
  PROJECT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
82
100
  "projects/{project}"
83
101
  )
84
102
 
85
103
  private_constant :PROJECT_PATH_TEMPLATE
86
104
 
105
+ # Returns a fully-qualified billing resource name string.
106
+ # @param billing_account [String]
107
+ # @return [String]
108
+ def self.billing_path billing_account
109
+ BILLING_PATH_TEMPLATE.render(
110
+ :"billing_account" => billing_account
111
+ )
112
+ end
113
+
114
+ # Returns a fully-qualified folder resource name string.
115
+ # @param folder [String]
116
+ # @return [String]
117
+ def self.folder_path folder
118
+ FOLDER_PATH_TEMPLATE.render(
119
+ :"folder" => folder
120
+ )
121
+ end
122
+
87
123
  # Returns a fully-qualified metric resource name string.
88
124
  # @param project [String]
89
125
  # @param metric [String]
@@ -95,6 +131,15 @@ module Google
95
131
  )
96
132
  end
97
133
 
134
+ # Returns a fully-qualified organization resource name string.
135
+ # @param organization [String]
136
+ # @return [String]
137
+ def self.organization_path organization
138
+ ORGANIZATION_PATH_TEMPLATE.render(
139
+ :"organization" => organization
140
+ )
141
+ end
142
+
98
143
  # Returns a fully-qualified project resource name string.
99
144
  # @param project [String]
100
145
  # @return [String]
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Logging
19
- VERSION = "1.6.5".freeze
19
+ VERSION = "1.6.6".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.5
4
+ version: 1.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-07-09 00:00:00.000000000 Z
12
+ date: 2019-08-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -341,7 +341,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
341
341
  - !ruby/object:Gem::Version
342
342
  version: '0'
343
343
  requirements: []
344
- rubygems_version: 3.0.3
344
+ rubygems_version: 3.0.4
345
345
  signing_key:
346
346
  specification_version: 4
347
347
  summary: API Client library for Stackdriver Logging