From aad0b98b8c458ae4682af9276a5a36a2f16de256 Mon Sep 17 00:00:00 2001 From: Colin McDonald Date: Mon, 10 Aug 2026 00:22:54 -0400 Subject: [PATCH 1/2] chore: export telemetry to Better Stack Route logs (100% sampled) and traces to the betterstack-logs / betterstack-traces OTLP destinations, per the fleet-wide policy cloudflare-health-check now enforces. Co-Authored-By: Claude Fable 5 --- wrangler.jsonc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/wrangler.jsonc b/wrangler.jsonc index ada73615d..5b894eb29 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -15,8 +15,23 @@ "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. "observability": { - "enabled": true + "enabled": true, + "logs": { + "enabled": true, + "destinations": ["betterstack-logs"], + "head_sampling_rate": 1.0, + "persist": true + }, + "traces": { + "enabled": true, + "destinations": ["betterstack-traces"], + "head_sampling_rate": 0.01, + "persist": true + } }, "vars": { "PUBLIC_SERVER_API_URL": "https://sky.shiiyu.moe/api/", From 55f55d4c89a9eda1a15fa7d73d88611895cc6b61 Mon Sep 17 00:00:00 2001 From: Colin McDonald Date: Mon, 10 Aug 2026 00:28:04 -0400 Subject: [PATCH 2/2] style: format files flagged by the quality gate prettier --check runs repo-wide on PRs but CI on dev pushes is always skipped, so these had drifted unformatted. Co-Authored-By: Claude Fable 5 --- package.json | 2 +- src/lib/hooks/is-hover.svelte.ts | 6 +++--- src/lib/sections/stats/Overview.svelte | 2 +- wrangler.jsonc | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 0c47ecceb..a03462ee8 100644 --- a/package.json +++ b/package.json @@ -135,4 +135,4 @@ "simple-git-hooks": { "commit-msg": "pnpm exec commitlint --edit $1" } -} \ No newline at end of file +} diff --git a/src/lib/hooks/is-hover.svelte.ts b/src/lib/hooks/is-hover.svelte.ts index 52b51b1e8..936096b6c 100644 --- a/src/lib/hooks/is-hover.svelte.ts +++ b/src/lib/hooks/is-hover.svelte.ts @@ -1,11 +1,11 @@ export class IsHover { #current = $state(true); - constructor() { } + constructor() {} get current() { return this.#current; } - destroy() { } -} \ No newline at end of file + destroy() {} +} diff --git a/src/lib/sections/stats/Overview.svelte b/src/lib/sections/stats/Overview.svelte index b96fbcd6d..e4d790060 100644 --- a/src/lib/sections/stats/Overview.svelte +++ b/src/lib/sections/stats/Overview.svelte @@ -15,4 +15,4 @@ - \ No newline at end of file + diff --git a/wrangler.jsonc b/wrangler.jsonc index 5b894eb29..d656e057c 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -11,8 +11,8 @@ }, "routes": [ { - "pattern": "skycrypt-embed.lunarclient.com", - "custom_domain": true + "pattern": "skycrypt-embed.lunarclient.com", + "custom_domain": true } ], // Exported to Better Stack via the OTLP destinations configured in the @@ -37,4 +37,4 @@ "PUBLIC_SERVER_API_URL": "https://sky.shiiyu.moe/api/", "PUBLIC_API_URL": "https://sky.shiiyu.moe/api/" } -} \ No newline at end of file +}