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: src/content/docs/workers/observability/errors.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -242,11 +242,9 @@ To review whether your application is experiencing any downtime or returning any
242
242
2. In **Account Home**, select **Workers & Pages**.
243
243
3. In **Overview**, select your Worker and review your Worker's metrics.
244
244
245
-
A `responseStreamDisconnected` event `outcome` occurs when one end of the connection hangs up during the deferred proxying stage of a Worker request flow. This is regarded as an error for request metrics, and presents in logs as a non-error log entry. It commonly appears for longer lived connections such as WebSockets.
246
-
247
245
### Worker Errors
248
246
249
-
The `Errors by invocation status` chart shows the number of errors that occurred. This graph is chart down into the following categories:
247
+
The **Errors by invocation status** chart shows the number of errors broken down into the following categories:
@@ -255,18 +253,20 @@ The `Errors by invocation status` chart shows the number of errors that occurred
255
253
|`Exceeded Memory`| Worker exceeded the memory limit during execution. |
256
254
|`Internal`| An internal error occurred in the Workers runtime. |
257
255
258
-
The `Client disconnected by type` chart shows the number of client disconnect errors that occurred. This graph is chart down into the following categories:
256
+
The **Client disconnected by type** chart shows the number of client disconnect errors broken down into the following categories:
|`Response Stream Disconnected`| Connection was terminated while streaming the response (common with WebSockets). |
260
+
|`Response Stream Disconnected`| Connection was terminated during the deferred proxying stage of a Worker request flow. It commonly appears for longer lived connections such as WebSockets. |
263
261
|`Cancelled`| The Client disconnected before the Worker completed its response. |
264
262
265
263
## Debug exceptions with Workers Logs
266
264
267
265
[Workers Logs](/workers/observability/logs/workers-logs) is a powerful tool for debugging your Workers. It allows you to see the logs generated by your Worker, including any uncaught exceptions that occur during execution.
268
266
269
-
To find all your errors in Workers Logs, you can use the following filter: `$metadata.error EXISTS`. This will show you all the logs that have an error associated with them. You can also filter by `$workers.outcome` to find the requests that resulted in an error. For example, you can filter by `$workers.outcome = "exception"` to find all the requests that resulted in an uncaught exception. All the possible outcome values can be found in the [Workers Trace Events](logs/reference/log-fields/account/workers_trace_events/#outcome) Reference.
267
+
To find all your errors in Workers Logs, you can use the following filter: `$metadata.error EXISTS`. This will show you all the logs that have an error associated with them. You can also filter by `$workers.outcome` to find the requests that resulted in an error. For example, you can filter by `$workers.outcome = "exception"` to find all the requests that resulted in an uncaught exception.
268
+
269
+
All the possible outcome values can be found in the [Workers Trace Events](logs/reference/log-fields/account/workers_trace_events/#outcome) reference.
0 commit comments