diff --git "a/src/assets/images/changelog/workers/observability/Screenshot 2025-09-05 at 3.10.12\342\200\257PM.png" "b/src/assets/images/changelog/workers/observability/Screenshot 2025-09-05 at 3.10.12\342\200\257PM.png" new file mode 100644 index 000000000000000..a9d6e2f38397431 Binary files /dev/null and "b/src/assets/images/changelog/workers/observability/Screenshot 2025-09-05 at 3.10.12\342\200\257PM.png" differ diff --git a/src/assets/images/workers-observability/2025-09-08-durableobject-id.png b/src/assets/images/workers-observability/2025-09-08-durableobject-id.png new file mode 100644 index 000000000000000..79122d9a04351e4 Binary files /dev/null and b/src/assets/images/workers-observability/2025-09-08-durableobject-id.png differ diff --git a/src/assets/images/workers-observability/2025-09-08-logs-for-durable-objects.png b/src/assets/images/workers-observability/2025-09-08-logs-for-durable-objects.png new file mode 100644 index 000000000000000..a9d6e2f38397431 Binary files /dev/null and b/src/assets/images/workers-observability/2025-09-08-logs-for-durable-objects.png differ diff --git a/src/content/changelog/workers/2025-03-11-process-env-support.mdx b/src/content/changelog/workers/2025-03-11-process-env-support.mdx index be11d481abe2e8f..2982c2c4d4c3f97 100644 --- a/src/content/changelog/workers/2025-03-11-process-env-support.mdx +++ b/src/content/changelog/workers/2025-03-11-process-env-support.mdx @@ -39,6 +39,7 @@ To opt-in to the new `process.env` behaviour now, add the [`nodejs_compat_popula // Add "nodejs_compat_populate_process_env" to your compatibility_flags array "compatibility_flags": ["nodejs_compat", "nodejs_compat_populate_process_env"], // Rest of your configuration +} ``` diff --git a/src/content/changelog/workers/2025-09-08-logs-for-durable-objects.mdx b/src/content/changelog/workers/2025-09-08-logs-for-durable-objects.mdx new file mode 100644 index 000000000000000..9ed6eb9f1cf17f3 --- /dev/null +++ b/src/content/changelog/workers/2025-09-08-logs-for-durable-objects.mdx @@ -0,0 +1,37 @@ +--- +title: You can now view logs directly in the Durable Objects dashboard +description: View, search and filter logs within the Durable Objects dashboard +date: 2025-09-08 +products: + - workers + - durable-objects +--- +import { WranglerConfig } from "~/components"; + + +![Logs in Durable Objects dashboard](~/assets/images/workers-observability/2025-09-08-logs-for-durable-objects.png) + +[Durable Objects](https://developers.cloudflare.com/durable-objects/) now have a dedicated logging dashboard that makes it easier to debug and monitor your applications. + +With these updates, you can: +* View logs by clicking into a Durable Object (DO) namespace within the [DO dashboard](https://dash.cloudflare.com/?to=/:account/workers/durable-objects) +* Add filters and search through all DO related log events +* Identify the Durable Object instance ID (displayed as `$workers.durableObjectId`) to understand which specific instance generated the log entry +![instance ID in DO logs](~/assets/images/workers-observability/2025-09-08-durableobject-id.png) + +**To get started:**\ +Set the following on the Worker that defines your Durable Object class: + + + +```jsonc +{ + "observability": { + "enabled": true + } +} +``` + + + +Once you make a new deplyoment, navigate to the `Logs` section of any [Durable Object](https://dash.cloudflare.com/?to=/:account/workers/durable-objects) to start debugging. \ No newline at end of file