Skip to content

Commit 5babbf8

Browse files
committed
improve the workers observability errors documentation
1 parent d6f341c commit 5babbf8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/content/docs/workers/observability/errors.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,9 @@ To review whether your application is experiencing any downtime or returning any
242242
2. In **Account Home**, select **Workers & Pages**.
243243
3. In **Overview**, select your Worker and review your Worker's metrics.
244244

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-
247245
### Worker Errors
248246

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:
250248

251249
| Error | Meaning |
252250
| -------------------------------- | ------------------------------------------------------------------------------------------ |
@@ -255,18 +253,20 @@ The `Errors by invocation status` chart shows the number of errors that occurred
255253
| `Exceeded Memory` | Worker exceeded the memory limit during execution. |
256254
| `Internal` | An internal error occurred in the Workers runtime. |
257255

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:
259257

260258
| Client Disconnects | Meaning |
261259
| -------------------------------- | ------------------------------------------------------------------------------------------ |
262-
| `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. |
263261
| `Cancelled` | The Client disconnected before the Worker completed its response. |
264262

265263
## Debug exceptions with Workers Logs
266264

267265
[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.
268266

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.
270270

271271
## Debug exceptions from `Wrangler`
272272

0 commit comments

Comments
 (0)