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
{{ message }}
This repository was archived by the owner on Mar 11, 2026. It is now read-only.
@@ -95,6 +96,9 @@ export type DeleteCallback = ApiResponseCallback;
95
96
* Note that {@link LogOptions#defaultWriteDeleteCallback} is useful when {@link Log#write} and {@link Log#delete} APIs are called
96
97
* without `await` and without callback added explicitly to every call - this way {@link LogOptions#defaultWriteDeleteCallback}
97
98
* can serve as global callback handler, which for example could be used to catch all errors and eliminate crashes.
99
+
* @param {boolean} [options.partialSuccess] Global flag indicating Whether a batch's valid entries should be written even if
100
+
* some other entry failed due to errors. Default is true.
101
+
* See {@link https://cloud.google.com/logging/docs/reference/v2/rest/v2/entries/write#body.request_body.FIELDS.partial_success|partialSuccess} for more info.
98
102
* @example
99
103
* ```
100
104
* import {Logging} from '@google-cloud/logging';
@@ -122,6 +126,7 @@ class Log implements LogSeverityFunctions {
Turning partialSuccess by default to be true if not provided in options. This should improve
181
+
overall logging reliability since only oversized entries will be dropped
182
+
from request. See {@link https://cloud.google.com/logging/quotas#log-limits} for more info
183
+
*/
184
+
this.partialSuccess=options.partialSuccess??true;
173
185
}
174
186
175
187
/**
@@ -967,9 +979,10 @@ class Log implements LogSeverityFunctions {
967
979
// Extract & format additional context from individual entries. Make sure to add instrumentation info
0 commit comments