google-cloud-error_reporting 0.30.2 → 0.30.3
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 +4 -4
- data/.yardopts +10 -1
- data/README.md +55 -43
- data/lib/google-cloud-error_reporting.rb +5 -4
- data/lib/google/cloud/error_reporting.rb +5 -82
- data/lib/google/cloud/error_reporting/middleware.rb +3 -3
- data/lib/google/cloud/error_reporting/rails.rb +1 -1
- data/lib/google/cloud/error_reporting/v1beta1/credentials.rb +1 -0
- data/lib/google/cloud/error_reporting/v1beta1/doc/google/devtools/clouderrorreporting/v1beta1/common.rb +1 -0
- data/lib/google/cloud/error_reporting/v1beta1/doc/google/devtools/clouderrorreporting/v1beta1/error_group_service.rb +1 -0
- data/lib/google/cloud/error_reporting/v1beta1/doc/google/devtools/clouderrorreporting/v1beta1/error_stats_service.rb +1 -0
- data/lib/google/cloud/error_reporting/v1beta1/doc/google/devtools/clouderrorreporting/v1beta1/report_errors_service.rb +1 -0
- data/lib/google/cloud/error_reporting/v1beta1/doc/google/protobuf/duration.rb +1 -0
- data/lib/google/cloud/error_reporting/v1beta1/doc/google/protobuf/timestamp.rb +9 -6
- data/lib/google/cloud/error_reporting/v1beta1/error_group_service_client.rb +2 -0
- data/lib/google/cloud/error_reporting/v1beta1/error_stats_service_client.rb +2 -0
- data/lib/google/cloud/error_reporting/v1beta1/report_errors_service_client.rb +2 -0
- data/lib/google/cloud/error_reporting/version.rb +1 -1
- data/lib/google/devtools/clouderrorreporting/v1beta1/common_pb.rb +1 -0
- data/lib/google/devtools/clouderrorreporting/v1beta1/error_group_service_pb.rb +1 -0
- data/lib/google/devtools/clouderrorreporting/v1beta1/error_group_service_services_pb.rb +1 -0
- data/lib/google/devtools/clouderrorreporting/v1beta1/error_stats_service_pb.rb +1 -0
- data/lib/google/devtools/clouderrorreporting/v1beta1/error_stats_service_services_pb.rb +1 -0
- data/lib/google/devtools/clouderrorreporting/v1beta1/report_errors_service_pb.rb +1 -0
- data/lib/google/devtools/clouderrorreporting/v1beta1/report_errors_service_services_pb.rb +1 -0
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d68cac833a46587b17d54be984dc1f7b95413db71b73df8dd5f9e00a17f81d1d
|
|
4
|
+
data.tar.gz: d1840a538b5770c01d8dd6535c88e6ef58346b479916dec7d0600bba60b3a1d9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 657ecf8a0361102b796f41ac3a74b3b8aab2523999cb19c700bc9c2046b4351387a09973e6a14a8632399ed2416e3bf50701435c1124bbd2d354488b3996f478
|
|
7
|
+
data.tar.gz: '08ddd5fdfb87aaaa2086ddb5c5650a277382c93e128037587eb6521d05a63319222b50fd656323ce546cb9f1c53f0bf532e6507d0c92e44506da9df15707c38d'
|
data/.yardopts
CHANGED
|
@@ -3,7 +3,16 @@
|
|
|
3
3
|
--exclude _pb\.rb$
|
|
4
4
|
--markup markdown
|
|
5
5
|
--markup-provider redcarpet
|
|
6
|
+
--main OVERVIEW.md
|
|
6
7
|
|
|
7
8
|
./lib/**/*.rb
|
|
8
9
|
-
|
|
9
|
-
|
|
10
|
+
OVERVIEW.md
|
|
11
|
+
AUTHENTICATION.md
|
|
12
|
+
INSTRUMENTATION.md
|
|
13
|
+
LOGGING.md
|
|
14
|
+
CONTRIBUTING.md
|
|
15
|
+
TROUBLESHOOTING.md
|
|
16
|
+
CHANGELOG.md
|
|
17
|
+
CODE_OF_CONDUCT.md
|
|
18
|
+
LICENSE
|
data/README.md
CHANGED
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
[Stackdriver Error Reporting](https://cloud.google.com/error-reporting/) counts,
|
|
4
4
|
analyzes and aggregates errors raised in your running cloud services. A
|
|
5
|
-
centralized error management interface displays the results with sorting
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
- [google-cloud-error_reporting
|
|
12
|
-
- [google-cloud-error_reporting instrumentation documentation](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-error_reporting/guides/instrumentation)
|
|
5
|
+
centralized error management interface displays the results with sorting and
|
|
6
|
+
filtering capabilities. A dedicated view shows the error details: time chart,
|
|
7
|
+
occurrences, affected user count, first and last seen dates and a cleaned
|
|
8
|
+
exception stack trace. Opt-in to receive email and mobile alerts on new errors.
|
|
9
|
+
|
|
10
|
+
- [google-cloud-error_reporting API documentation](http://googlecloudplatform.github.io/google-cloud-ruby/docs/google-cloud-error_reporting/latest)
|
|
11
|
+
- [google-cloud-error_reporting instrumentation documentation](https://googlecloudplatform.github.io/google-cloud-ruby/docs/google-cloud-error_reporting/latest/file.INSTRUMENTATION)
|
|
13
12
|
- [google-cloud-error_reporting on RubyGems](https://rubygems.org/gems/google-cloud-error_reporting)
|
|
14
13
|
- [Stackdriver ErrorReporting documentation](https://cloud.google.com/error-reporting/docs/)
|
|
15
14
|
|
|
@@ -35,13 +34,14 @@ gem "google-cloud-error_reporting"
|
|
|
35
34
|
$ bundle install
|
|
36
35
|
```
|
|
37
36
|
|
|
38
|
-
Alternatively, check out the
|
|
39
|
-
|
|
37
|
+
Alternatively, check out the
|
|
38
|
+
[`stackdriver`](http://googlecloudplatform.github.io/google-cloud-ruby/docs/stackdriver/latest)
|
|
39
|
+
gem that includes the `google-cloud-error_reporting` gem.
|
|
40
40
|
|
|
41
41
|
## Enable Stackdriver Error Reporting API
|
|
42
42
|
|
|
43
|
-
The Stackdriver Error Reporting library needs the [Stackdriver Error
|
|
44
|
-
|
|
43
|
+
The Stackdriver Error Reporting library needs the [Stackdriver Error Reporting
|
|
44
|
+
API](https://console.cloud.google.com/apis/library/clouderrorreporting.googleapis.com)
|
|
45
45
|
to be enabled on your Google Cloud project. Make sure it's enabled if not
|
|
46
46
|
already.
|
|
47
47
|
|
|
@@ -54,8 +54,8 @@ automatically reports exceptions captured from the application's Rack stack.
|
|
|
54
54
|
|
|
55
55
|
### With Ruby on Rails
|
|
56
56
|
|
|
57
|
-
You can load the Railtie that comes with the library into your Ruby
|
|
58
|
-
|
|
57
|
+
You can load the Railtie that comes with the library into your Ruby on Rails
|
|
58
|
+
application by explicitly requiring it during the application startup:
|
|
59
59
|
|
|
60
60
|
```ruby
|
|
61
61
|
# In config/application.rb
|
|
@@ -91,8 +91,9 @@ end
|
|
|
91
91
|
## Configuring the library
|
|
92
92
|
|
|
93
93
|
You can customize the behavior of the Stackdriver Error Reporting library for
|
|
94
|
-
Ruby. See the [configuration
|
|
95
|
-
|
|
94
|
+
Ruby. See the [configuration
|
|
95
|
+
guide](http://googlecloudplatform.github.io/google-cloud-ruby/docs/stackdriver/latest/file.INSTRUMENTATION_CONFIGURATION)
|
|
96
|
+
for a list of possible configuration options.
|
|
96
97
|
|
|
97
98
|
## Running on Google Cloud Platform
|
|
98
99
|
|
|
@@ -104,8 +105,8 @@ enabled on that instance.
|
|
|
104
105
|
### App Engine
|
|
105
106
|
|
|
106
107
|
On Google App Engine, the Stackdriver Error Reporting API access scope is
|
|
107
|
-
enabled by default, and the Stackdriver Error Reporting library for Ruby can
|
|
108
|
-
|
|
108
|
+
enabled by default, and the Stackdriver Error Reporting library for Ruby can be
|
|
109
|
+
used without providing credentials or a project ID.
|
|
109
110
|
|
|
110
111
|
### Container Engine
|
|
111
112
|
|
|
@@ -131,18 +132,17 @@ full access to all Cloud APIs" under Access scopes.
|
|
|
131
132
|
|
|
132
133
|
To run the Stackdriver Error Reporting outside of Google Cloud Platform, you
|
|
133
134
|
must supply your GCP project ID and appropriate service account credentials
|
|
134
|
-
directly to the Stackdriver Error Reporting. This applies to running the
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
directly to the Stackdriver Error Reporting. This applies to running the library
|
|
136
|
+
on your own workstation, on your datacenter's computers, or on the VM instances
|
|
137
|
+
of another cloud provider. See the [Authentication section](#authentication) for
|
|
138
|
+
instructions on how to do so.
|
|
138
139
|
|
|
139
140
|
## Authentication
|
|
140
141
|
|
|
141
|
-
The Instrumentation client and API use Service Account credentials to connect
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
several ways.
|
|
142
|
+
The Instrumentation client and API use Service Account credentials to connect to
|
|
143
|
+
Google Cloud services. When running on Google Cloud Platform environments, the
|
|
144
|
+
credentials will be discovered automatically. When running on other environments
|
|
145
|
+
the Service Account credentials can be specified by providing in several ways.
|
|
146
146
|
|
|
147
147
|
The best way to provide authentication information if you're using Ruby on Rails
|
|
148
148
|
is through the Rails configuration interface:
|
|
@@ -175,12 +175,24 @@ end
|
|
|
175
175
|
```
|
|
176
176
|
|
|
177
177
|
This library also supports the other authentication methods provided by the
|
|
178
|
-
`google-cloud-ruby` suite. Instructions and configuration options are covered
|
|
179
|
-
|
|
178
|
+
`google-cloud-ruby` suite. Instructions and configuration options are covered in
|
|
179
|
+
the [Authentication
|
|
180
|
+
Guide](https://googlecloudplatform.github.io/google-cloud-ruby/docs/google-cloud-debugger/latest/file.AUTHENTCATION).
|
|
180
181
|
|
|
181
182
|
## Enabling Logging
|
|
182
183
|
|
|
183
|
-
To enable logging for this library, set the logger for the underlying
|
|
184
|
+
To enable logging for this library, set the logger for the underlying
|
|
185
|
+
[gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library. The logger
|
|
186
|
+
that you set may be a Ruby stdlib
|
|
187
|
+
[`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as
|
|
188
|
+
shown below, or a
|
|
189
|
+
[`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/docs/google-cloud-logging/latest/Google/Cloud/Logging/Logger)
|
|
190
|
+
that will write logs to [Stackdriver
|
|
191
|
+
Logging](https://cloud.google.com/logging/). See
|
|
192
|
+
[grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
|
193
|
+
and the gRPC
|
|
194
|
+
[spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb)
|
|
195
|
+
for additional information.
|
|
184
196
|
|
|
185
197
|
Configuring a Ruby stdlib logger:
|
|
186
198
|
|
|
@@ -205,9 +217,9 @@ end
|
|
|
205
217
|
This library is supported on Ruby 2.3+.
|
|
206
218
|
|
|
207
219
|
Google provides official support for Ruby versions that are actively supported
|
|
208
|
-
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
|
209
|
-
|
|
210
|
-
|
|
220
|
+
by Ruby Core—that is, Ruby versions that are either in normal maintenance or in
|
|
221
|
+
security maintenance, and not end of life. Currently, this means Ruby 2.3 and
|
|
222
|
+
later. Older versions of Ruby _may_ still work, but are unsupported and not
|
|
211
223
|
recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
|
|
212
224
|
about the Ruby support schedule.
|
|
213
225
|
|
|
@@ -222,24 +234,24 @@ change at any time and the public API should not be considered stable.
|
|
|
222
234
|
|
|
223
235
|
Contributions to this library are always welcome and highly encouraged.
|
|
224
236
|
|
|
225
|
-
See the
|
|
226
|
-
|
|
237
|
+
See the [Contributing
|
|
238
|
+
Guide](https://googlecloudplatform.github.io/google-cloud-ruby/docs/google-cloud-debugger/latest/file.CONTRIBUTING)
|
|
227
239
|
for more information on how to get started.
|
|
228
240
|
|
|
229
241
|
Please note that this project is released with a Contributor Code of Conduct. By
|
|
230
|
-
participating in this project you agree to abide by its terms. See
|
|
231
|
-
|
|
242
|
+
participating in this project you agree to abide by its terms. See [Code of
|
|
243
|
+
Conduct](https://googlecloudplatform.github.io/google-cloud-ruby/docs/google-cloud-debugger/latest/file.CODE_OF_CONDUCT)
|
|
244
|
+
for more information.
|
|
232
245
|
|
|
233
246
|
## License
|
|
234
247
|
|
|
235
248
|
This library is licensed under Apache 2.0. Full license text is available in
|
|
236
|
-
|
|
249
|
+
[LICENSE](https://googlecloudplatform.github.io/google-cloud-ruby/docs/google-cloud-debugger/latest/file.LICENSE).
|
|
237
250
|
|
|
238
251
|
## Support
|
|
239
252
|
|
|
240
|
-
Please
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
253
|
+
Please [report bugs at the project on
|
|
254
|
+
Github](https://github.com/GoogleCloudPlatform/google-cloud-ruby/issues). Don't
|
|
255
|
+
hesitate to [ask
|
|
256
|
+
questions](http://stackoverflow.com/questions/tagged/google-cloud-platform+ruby)
|
|
244
257
|
about the client or APIs on [StackOverflow](http://stackoverflow.com).
|
|
245
|
-
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
# See the License for the specific language governing permissions and
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
|
+
|
|
15
16
|
##
|
|
16
17
|
# This file is here to be autorequired by bundler
|
|
17
18
|
|
|
@@ -27,8 +28,8 @@ module Google
|
|
|
27
28
|
# Create a new object for connecting to the Stackdriver Error Reporting
|
|
28
29
|
# service. Each call creates a new connection.
|
|
29
30
|
#
|
|
30
|
-
# For more information on connecting to Google Cloud see the
|
|
31
|
-
# Guide
|
|
31
|
+
# For more information on connecting to Google Cloud see the
|
|
32
|
+
# {file:AUTHENTICATION.md Authentication Guide}.
|
|
32
33
|
#
|
|
33
34
|
# @param [String, Array<String>] scope The OAuth 2.0 scopes controlling the
|
|
34
35
|
# set of resources and operations that the connection can access. See
|
|
@@ -69,8 +70,8 @@ module Google
|
|
|
69
70
|
# Create a new object for connecting to the Stackdriver Error Reporting
|
|
70
71
|
# service. Each call creates a new connection.
|
|
71
72
|
#
|
|
72
|
-
# For more information on connecting to Google Cloud see the
|
|
73
|
-
# Guide
|
|
73
|
+
# For more information on connecting to Google Cloud see the
|
|
74
|
+
# {file:AUTHENTICATION.md Authentication Guide}.
|
|
74
75
|
#
|
|
75
76
|
# @param [String] project_id Google Cloud Platform project identifier for
|
|
76
77
|
# the Stackdriver Error Reporting service you are connecting to. If not
|
|
@@ -24,88 +24,12 @@ require "stackdriver/core"
|
|
|
24
24
|
module Google
|
|
25
25
|
module Cloud
|
|
26
26
|
##
|
|
27
|
-
# #
|
|
27
|
+
# # Error Reporting
|
|
28
28
|
#
|
|
29
29
|
# Stackdriver Error Reporting counts, analyzes and aggregates the crashes in
|
|
30
|
-
# your running cloud services.
|
|
31
|
-
# Instrumentation client provides
|
|
32
|
-
# [a simple way to report errors](#how-to-report-errors) from your
|
|
33
|
-
# application.
|
|
30
|
+
# your running cloud services.
|
|
34
31
|
#
|
|
35
|
-
#
|
|
36
|
-
# [Stackdriver Error Reporting
|
|
37
|
-
# Documentation](https://cloud.google.com/error-reporting/docs/).
|
|
38
|
-
#
|
|
39
|
-
# The goal of google-cloud is to provide an API that is comfortable to
|
|
40
|
-
# Rubyists. Your authentication credentials are detected automatically in
|
|
41
|
-
# Google Cloud Platform environments such as Google Compute Engine, Google
|
|
42
|
-
# App Engine and Google Kubernetes Engine. In other environments you can
|
|
43
|
-
# configure authentication easily, either directly in your code or via
|
|
44
|
-
# environment variables. Read more about the options for connecting in the
|
|
45
|
-
# [Authentication
|
|
46
|
-
# Guide](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/guides/authentication).
|
|
47
|
-
#
|
|
48
|
-
# ## Enabling Logging
|
|
49
|
-
#
|
|
50
|
-
# To enable logging for this library, set the logger for the underlying
|
|
51
|
-
# [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library. The
|
|
52
|
-
# logger that you set may be a Ruby stdlib
|
|
53
|
-
# [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html)
|
|
54
|
-
# as shown below, or a
|
|
55
|
-
# [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
|
|
56
|
-
# that will write logs to [Stackdriver
|
|
57
|
-
# Logging](https://cloud.google.com/logging/). See
|
|
58
|
-
# [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
|
59
|
-
# and the gRPC
|
|
60
|
-
# [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb)
|
|
61
|
-
# for additional information.
|
|
62
|
-
#
|
|
63
|
-
# Configuring a Ruby stdlib logger:
|
|
64
|
-
#
|
|
65
|
-
# ```ruby
|
|
66
|
-
# require "logger"
|
|
67
|
-
#
|
|
68
|
-
# module MyLogger
|
|
69
|
-
# LOGGER = Logger.new $stderr, level: Logger::WARN
|
|
70
|
-
# def logger
|
|
71
|
-
# LOGGER
|
|
72
|
-
# end
|
|
73
|
-
# end
|
|
74
|
-
#
|
|
75
|
-
# # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
|
76
|
-
# module GRPC
|
|
77
|
-
# extend MyLogger
|
|
78
|
-
# end
|
|
79
|
-
# ```
|
|
80
|
-
#
|
|
81
|
-
# ## How to report errors
|
|
82
|
-
#
|
|
83
|
-
# You can easily report exceptions from your applications to Stackdriver
|
|
84
|
-
# Error Reporting service:
|
|
85
|
-
#
|
|
86
|
-
# ```ruby
|
|
87
|
-
# require "google/cloud/error_reporting"
|
|
88
|
-
#
|
|
89
|
-
# # Configure Stackdriver ErrorReporting instrumentation
|
|
90
|
-
# Google::Cloud::ErrorReporting.configure do |config|
|
|
91
|
-
# config.project_id = "my-project"
|
|
92
|
-
# config.keyfile = "/path/to/keyfile.json"
|
|
93
|
-
# end
|
|
94
|
-
#
|
|
95
|
-
# # Insert a Rack Middleware to report unhanded exceptions
|
|
96
|
-
# use Google::Cloud::ErrorReporting::Middleware
|
|
97
|
-
#
|
|
98
|
-
# # Or explicitly submit exceptions
|
|
99
|
-
# begin
|
|
100
|
-
# fail "Boom!"
|
|
101
|
-
# rescue => exception
|
|
102
|
-
# Google::Cloud::ErrorReporting.report exception
|
|
103
|
-
# end
|
|
104
|
-
# ```
|
|
105
|
-
#
|
|
106
|
-
# See the [Instrumentation
|
|
107
|
-
# Guide](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-error_reporting/guides/instrumentation)
|
|
108
|
-
# for more examples.
|
|
32
|
+
# See {file:OVERVIEW.md Error Reporting Overview}.
|
|
109
33
|
#
|
|
110
34
|
module ErrorReporting
|
|
111
35
|
##
|
|
@@ -118,8 +42,7 @@ module Google
|
|
|
118
42
|
# service. Each call creates a new connection.
|
|
119
43
|
#
|
|
120
44
|
# For more information on connecting to Google Cloud see the
|
|
121
|
-
#
|
|
122
|
-
# Guide](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/guides/authentication).
|
|
45
|
+
# {file:AUTHENTICATION.md Authentication Guide}.
|
|
123
46
|
#
|
|
124
47
|
# @param [String] project_id Google Cloud Platform project identifier for
|
|
125
48
|
# the Stackdriver Error Reporting service you are connecting to. If not
|
|
@@ -202,7 +125,7 @@ module Google
|
|
|
202
125
|
# should not be reported.
|
|
203
126
|
#
|
|
204
127
|
# See the [Configuration
|
|
205
|
-
# Guide](https://googlecloudplatform.github.io/google-cloud-ruby
|
|
128
|
+
# Guide](https://googlecloudplatform.github.io/google-cloud-ruby/docs/stackdriver/latest/file.INSTRUMENTATION_CONFIGURATION)
|
|
206
129
|
# for full configuration parameters.
|
|
207
130
|
#
|
|
208
131
|
# @example
|
|
@@ -37,9 +37,9 @@ module Google
|
|
|
37
37
|
# @param [Google::Cloud::ErrorReporting::Project] error_reporting A
|
|
38
38
|
# Google::Cloud::ErrorReporting::Project client for reporting
|
|
39
39
|
# exceptions
|
|
40
|
-
# @param [Hash]
|
|
41
|
-
#
|
|
42
|
-
# Guide](https://googlecloudplatform.github.io/google-cloud-ruby
|
|
40
|
+
# @param [Hash] kwargs Hash of configuration settings. Used for backward
|
|
41
|
+
# API compatibility. See the [Configuration
|
|
42
|
+
# Guide](https://googlecloudplatform.github.io/google-cloud-ruby/docs/stackdriver/latest/file.INSTRUMENTATION_CONFIGURATION)
|
|
43
43
|
# for the prefered way to set configuration parameters.
|
|
44
44
|
#
|
|
45
45
|
# @return [Google::Cloud::ErrorReporting::Middleware] A new instance of
|
|
@@ -35,7 +35,7 @@ module Google
|
|
|
35
35
|
# and handle all Exceptions without interfering with Rails's normal error
|
|
36
36
|
# pages.
|
|
37
37
|
# See the [Configuration
|
|
38
|
-
# Guide](https://googlecloudplatform.github.io/google-cloud-ruby
|
|
38
|
+
# Guide](https://googlecloudplatform.github.io/google-cloud-ruby/docs/stackdriver/latest/file.INSTRUMENTATION_CONFIGURATION)
|
|
39
39
|
# on how to configure the Railtie and Middleware.
|
|
40
40
|
#
|
|
41
41
|
class Railtie < ::Rails::Railtie
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
# See the License for the specific language governing permissions and
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
|
+
|
|
15
16
|
module Google
|
|
16
17
|
module Protobuf
|
|
17
18
|
# A Timestamp represents a point in time independent of any time zone
|
|
@@ -72,12 +73,14 @@ module Google
|
|
|
72
73
|
#
|
|
73
74
|
# In JSON format, the Timestamp type is encoded as a string in the
|
|
74
75
|
# [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
|
75
|
-
# format is "{year}
|
|
76
|
-
# where {year} is always expressed using four digits while {month}, {day},
|
|
77
|
-
# {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
|
76
|
+
# format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z"
|
|
77
|
+
# where \\{year} is always expressed using four digits while \\{month}, \\{day},
|
|
78
|
+
# \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional
|
|
78
79
|
# seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
|
79
80
|
# are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
|
80
|
-
# is required
|
|
81
|
+
# is required. A proto3 JSON serializer should always use UTC (as indicated by
|
|
82
|
+
# "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
|
83
|
+
# able to accept both UTC and other timezones (as indicated by an offset).
|
|
81
84
|
#
|
|
82
85
|
# For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
|
83
86
|
# 01:30 UTC on January 15, 2017.
|
|
@@ -88,8 +91,8 @@ module Google
|
|
|
88
91
|
# to this format using [+strftime+](https://docs.python.org/2/library/time.html#time.strftime)
|
|
89
92
|
# with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
|
|
90
93
|
# can use the Joda Time's [+ISODateTimeFormat.dateTime()+](
|
|
91
|
-
# http://joda-time
|
|
92
|
-
# to obtain a formatter capable of generating timestamps in this format.
|
|
94
|
+
# http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime--
|
|
95
|
+
# ) to obtain a formatter capable of generating timestamps in this format.
|
|
93
96
|
# @!attribute [rw] seconds
|
|
94
97
|
# @return [Integer]
|
|
95
98
|
# Represents seconds of UTC time since Unix epoch
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
# For the short term, the refresh process will only be runnable by Google
|
|
20
20
|
# engineers.
|
|
21
21
|
|
|
22
|
+
|
|
22
23
|
require "json"
|
|
23
24
|
require "pathname"
|
|
24
25
|
|
|
@@ -36,6 +37,7 @@ module Google
|
|
|
36
37
|
# @!attribute [r] error_group_service_stub
|
|
37
38
|
# @return [Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroupService::Stub]
|
|
38
39
|
class ErrorGroupServiceClient
|
|
40
|
+
# @private
|
|
39
41
|
attr_reader :error_group_service_stub
|
|
40
42
|
|
|
41
43
|
# The default address of the service.
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
# For the short term, the refresh process will only be runnable by Google
|
|
20
20
|
# engineers.
|
|
21
21
|
|
|
22
|
+
|
|
22
23
|
require "json"
|
|
23
24
|
require "pathname"
|
|
24
25
|
|
|
@@ -37,6 +38,7 @@ module Google
|
|
|
37
38
|
# @!attribute [r] error_stats_service_stub
|
|
38
39
|
# @return [Google::Devtools::Clouderrorreporting::V1beta1::ErrorStatsService::Stub]
|
|
39
40
|
class ErrorStatsServiceClient
|
|
41
|
+
# @private
|
|
40
42
|
attr_reader :error_stats_service_stub
|
|
41
43
|
|
|
42
44
|
# The default address of the service.
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
# For the short term, the refresh process will only be runnable by Google
|
|
20
20
|
# engineers.
|
|
21
21
|
|
|
22
|
+
|
|
22
23
|
require "json"
|
|
23
24
|
require "pathname"
|
|
24
25
|
|
|
@@ -36,6 +37,7 @@ module Google
|
|
|
36
37
|
# @!attribute [r] report_errors_service_stub
|
|
37
38
|
# @return [Google::Devtools::Clouderrorreporting::V1beta1::ReportErrorsService::Stub]
|
|
38
39
|
class ReportErrorsServiceClient
|
|
40
|
+
# @private
|
|
39
41
|
attr_reader :report_errors_service_stub
|
|
40
42
|
|
|
41
43
|
# The default address of the service.
|
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.30.
|
|
4
|
+
version: 0.30.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google Inc
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-09-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-cloud-core
|
|
@@ -196,16 +196,16 @@ dependencies:
|
|
|
196
196
|
name: yard-doctest
|
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
|
198
198
|
requirements:
|
|
199
|
-
- - "
|
|
199
|
+
- - "~>"
|
|
200
200
|
- !ruby/object:Gem::Version
|
|
201
|
-
version: 0.1.
|
|
201
|
+
version: 0.1.13
|
|
202
202
|
type: :development
|
|
203
203
|
prerelease: false
|
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
|
205
205
|
requirements:
|
|
206
|
-
- - "
|
|
206
|
+
- - "~>"
|
|
207
207
|
- !ruby/object:Gem::Version
|
|
208
|
-
version: 0.1.
|
|
208
|
+
version: 0.1.13
|
|
209
209
|
description: google-cloud-error_reporting is the official library for Stackdriver
|
|
210
210
|
Error Reporting.
|
|
211
211
|
email:
|