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/"