From 07d52303979fb7d142ace295f37b7405e75bea3b Mon Sep 17 00:00:00 2001 From: Colin McDonald Date: Sat, 29 Aug 2026 21:46:54 -0400 Subject: [PATCH] chore: centralize Workers observability --- wrangler.jsonc | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/wrangler.jsonc b/wrangler.jsonc index 959525501..5182a5f77 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -15,24 +15,28 @@ "custom_domain": true } ], - // Exported to Better Stack via the OTLP destinations configured in the - // Cloudflare dashboard (Workers & Pages -> Observability -> Telemetry). - // persist: true also retains everything in the CF dashboard. + // Persist observability in Cloudflare and forward invocations to the central Tail Worker. "observability": { "enabled": true, "logs": { "enabled": true, - "destinations": ["betterstack-logs"], + "destinations": [], "head_sampling_rate": 1.0, + "invocation_logs": true, "persist": true }, "traces": { "enabled": true, - "destinations": ["betterstack-traces"], - "head_sampling_rate": 1.0, + "destinations": [], + "head_sampling_rate": 0.01, "persist": true } }, + "tail_consumers": [ + { + "service": "moonsworth-workers-observability" + } + ], "vars": { "PUBLIC_SERVER_API_URL": "https://sky.shiiyu.moe/api/", "PUBLIC_API_URL": "https://sky.shiiyu.moe/api/"