Skip to content

Commit fa9163c

Browse files
authored
Add documentation for persisting Rust coredumps (#21332)
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 481a594 commit fa9163c

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
@@ -323,6 +323,10 @@ function postLog(data) {
323323

324324
</TabItem> </Tabs>
325325

326+
## Collect and persist Wasm core dumps
327+
328+
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.
329+
326330
## Go to origin on error
327331

328332
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)