You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: handwritten/error-reporting/README.md
+3-33Lines changed: 3 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,7 @@
10
10
11
11
12
12
13
-
> Node.js idiomatic client for [Error Reporting][product-docs].
14
-
15
-
[Error Reporting](https://cloud.google.com/error-reporting/docs/) aggregates and displays errors produced in your running cloud services.
13
+
Error Reporting Client Library for Node.js
16
14
17
15
18
16
A comprehensive list of changes in each version may be found in
@@ -45,7 +43,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
45
43
46
44
1.[Select or create a Cloud Platform project][projects].
47
45
1.[Enable the Error Reporting API][enable_api].
48
-
1.[Set up authentication with a service account][auth] so you can access the
46
+
1.[Set up authentication][auth] so you can access the
49
47
API from your local workstation.
50
48
51
49
### Installing the client library
@@ -54,35 +52,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
54
52
npm install @google-cloud/error-reporting
55
53
```
56
54
57
-
This module provides custom Error Reporting support for Node.js applications.
58
-
[Error Reporting](https://cloud.google.com/error-reporting/) is a feature of
59
-
Google Cloud Platform that allows in-depth monitoring and viewing of errors reported by
60
-
applications running in almost any environment.
61
-
62
-
However, note that [@google-cloud/logging-winston](https://github.com/googleapis/nodejs-logging-winston) and [@google-cloud/logging-bunyan](https://github.com/googleapis/nodejs-logging-bunyan) automatically integrate with the Error Reporting service for Error objects logged at severity `error` or higher, for applications running on Google Cloud Platform.
63
-
64
-
Thus, if you are already using Winston or Bunyan in your application, and don't need custom error reporting capabilities, you do not need to use the `@google-cloud/error-reporting` library directly to report errors to the Error Reporting Console.
The `reportMode` configuration option is used to specify when errors are reported to the Error Reporting Console. It can have one of three values:
71
-
*`'production'` (default): Only report errors if the NODE_ENV environment variable is set to "production".
72
-
*`'always'`: Always report errors regardless of the value of NODE_ENV.
73
-
*`'never'`: Never report errors regardless of the value of NODE_ENV.
74
-
75
-
The `reportMode` configuration option replaces the deprecated `ignoreEnvironmentCheck` configuration option. If both the `reportMode` and `ignoreEnvironmentCheck` options are specified, the `reportMode` configuration option takes precedence.
76
-
77
-
The `ignoreEnvironmentCheck` option should not be used. However, if it is used, and the `reportMode` option is not specified, it can have the values:
78
-
*`false` (default): Only report errors if the NODE_ENV environment variable is set to "production".
79
-
*`true`: Always report errors regardless of the value of NODE_ENV.
80
-
81
-
## Setup, Configuration, and Examples
82
-
83
-
See the documentation for setup instructions, configuration options, and examples: https://cloud.google.com/error-reporting/docs/setup/nodejs
84
55
85
-
Additional code samples can also be found here: https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/main/error-reporting
86
56
87
57
88
58
@@ -152,4 +122,4 @@ See [LICENSE](https://github.com/googleapis/nodejs-error-reporting/blob/main/LIC
Copy file name to clipboardExpand all lines: packages/google-cloud-ces/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,6 +139,7 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ
139
139
| get deployment |[source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-ces/samples/generated/v1beta/agent_service.get_deployment.js)|
140
140
| get example |[source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-ces/samples/generated/v1beta/agent_service.get_example.js)|
141
141
| get guardrail |[source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-ces/samples/generated/v1beta/agent_service.get_guardrail.js)|
142
+
| get security settings |[source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-ces/samples/generated/v1beta/agent_service.get_security_settings.js)|
142
143
| get tool |[source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-ces/samples/generated/v1beta/agent_service.get_tool.js)|
143
144
| get toolset |[source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-ces/samples/generated/v1beta/agent_service.get_toolset.js)|
| update example |[source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-ces/samples/generated/v1beta/agent_service.update_example.js)|
0 commit comments