Skip to content

Commit ea54710

Browse files
committed
Add documentation for persisting Rust coredumps
This was written about in the linked blog post. It seems like this should in theory work for Javascript workers, but I'm not sure (e.g., cloudflare/wasm-coredump#5).
1 parent 2c8944a commit ea54710

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,10 @@ function postLog(data) {
302302

303303
</TabItem> </Tabs>
304304

305+
## Collect and persist Wasm core dumps
306+
307+
Configure the [Wasm Coredump Service](https://github.com/cloudflare/wasm-coredump) to collect coredumps from your Rust Workers applications and persist them to logs, Sentry, or R2 for analysis with [wasmgdb](https://github.com/xtuc/wasm-coredump/tree/main/bin/wasmgdb). Read the [blog post](https://blog.cloudflare.com/wasm-coredumps/) for more details.
308+
305309
## Go to origin on error
306310

307311
By using [`event.passThroughOnException`](/workers/runtime-apis/context/#passthroughonexception), a Workers application will forward requests to your origin if an exception is thrown during the Worker's execution. This allows you to add logging, tracking, or other features with Workers, without degrading your application's functionality.

0 commit comments

Comments
 (0)