Skip to content

Commit b166f95

Browse files
pulkitacloudflarespersad
andauthored
Add Observability call out as a feature in Worker templates (#752)
Co-authored-by: spersad <spersad@cloudflare.com>
1 parent 24fc4e0 commit b166f95

File tree

17 files changed

+69
-10
lines changed

17 files changed

+69
-10
lines changed

‎astro-blog-starter-template/README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Features:
1616
- ✅ Sitemap support
1717
- ✅ RSS Feed support
1818
- ✅ Markdown & MDX support
19+
- ✅ Built-in Observability logging
1920

2021
<!-- dash-content-end -->
2122

@@ -52,6 +53,7 @@ All commands are run from the root of the project, from a terminal:
5253
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
5354
| `npm run astro -- --help` | Get help using the Astro CLI |
5455
| `npm run build && npm run deploy` | Deploy your production site to Cloudflare |
56+
| `npm wrangler tail` | View real-time logs for all Workers |
5557

5658
## 👀 Want to learn more?
5759

‎chanfana-openapi-template/README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ A live public deployment of this template is available at [https://openapi-templ
4949
```bash
5050
npx wrangler deploy
5151
```
52+
5. Monitor your worker
53+
```bash
54+
npx wrangler tail
55+
```
5256

5357
## Testing
5458

‎durable-chat-template/README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,7 @@ A live public deployment of this template is available at [https://durable-chat-
3636
```bash
3737
npx wrangler deploy
3838
```
39+
3. Monitor your worker
40+
```bash
41+
npx wrangler tail
42+
```

‎hello-world-do-template/README.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ You can start editing the project by modifying `src/index.ts`.
4040

4141
## Deploying To Production
4242

43-
| Command | Action |
44-
| :--------------- | :------------------------------------ |
45-
| `npm run deploy` | Deploy your application to Cloudflare |
43+
| Command | Action |
44+
| :------------------ | :------------------------------------ |
45+
| `npm run deploy` | Deploy your application to Cloudflare |
46+
| `npm wrangler tail` | View real-time logs for all Workers |
4647

4748
## Learn More
4849

‎llm-chat-app-template/README.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ This template demonstrates how to build an AI-powered chat interface using Cloud
2323
- 🛠️ Built with TypeScript and Cloudflare Workers
2424
- 📱 Mobile-friendly design
2525
- 🔄 Maintains chat history on the client
26+
- 🔎 Built-in Observability logging
2627
<!-- dash-content-end -->
2728

2829
## Getting Started
@@ -73,6 +74,14 @@ Deploy to Cloudflare Workers:
7374
npm run deploy
7475
```
7576

77+
### Monitor
78+
79+
View real-time logs associated with any deployed Worker:
80+
81+
```bash
82+
npm wrangler tail
83+
```
84+
7685
## Project Structure
7786

7887
```

‎multiplayer-globe-template/README.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ A live public deployment of this template is available at [https://multiplayer-g
3838
```bash
3939
npm install
4040
```
41-
2. Deploy the project!
41+
2. Deploy the project
4242
```bash
4343
npx wrangler deploy
4444
```
45+
3. And monitor your workers!
46+
```bash
47+
npx wrangler tail
48+
```

‎mysql-hyperdrive-template/README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,7 @@ A live public deployment of this template is available at [https://mysql-hyperdr
5454
```bash
5555
npx wrangler dev --remote
5656
```
57+
5. Monitor your worker
58+
```bash
59+
npx wrangler tail
60+
```

‎next-starter-template/README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-opti
5151
| `npm run build` | Build your production site |
5252
| `npm run preview` | Preview your build locally, before deploying |
5353
| `npm run build && npm run deploy` | Deploy your production site to Cloudflare |
54+
| `npm wrangler tail` | View real-time logs for all Workers |
5455

5556
## Learn More
5657

‎openauth-template/README.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<!-- dash-content-start -->
88

9-
[OpenAuth](https://openauth.js.org/) is a universal provider for managing user authentication. By deploying OpenAuth on Cloudflare Workers, you can add scalable authentication to your application. This demo showcases login, user registration, and password reset, with storage and state powered by [D1](https://developers.cloudflare.com/d1/) and [KV](https://developers.cloudflare.com/kv/).
9+
[OpenAuth](https://openauth.js.org/) is a universal provider for managing user authentication. By deploying OpenAuth on Cloudflare Workers, you can add scalable authentication to your application. This demo showcases login, user registration, and password reset, with storage and state powered by [D1](https://developers.cloudflare.com/d1/) and [KV](https://developers.cloudflare.com/kv/). [Observability](https://developers.cloudflare.com/workers/observability/logs/workers-logs/#enable-workers-logs) is on by default.
1010

1111
> [!IMPORTANT]
1212
> When using C3 to create this project, select "no" when it asks if you want to deploy. You need to follow this project's [setup steps](https://github.com/cloudflare/templates/tree/main/openauth-template#setup-steps) before deploying.
@@ -47,3 +47,7 @@ A live public deployment of this template is available at [https://openauth-temp
4747
```bash
4848
npx wrangler deploy
4949
```
50+
6. And monitor your worker
51+
```bash
52+
npx wrangler tail
53+
```

‎postgres-hyperdrive-template/README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,7 @@ A live public deployment of this template is available at [https://postgres-hype
5454
```bash
5555
npx wrangler dev --remote
5656
```
57+
5. Monitor your worker
58+
```bash
59+
npx wrangler tail
60+
```

0 commit comments

Comments
 (0)