Skip to content

Commit cc65bdd

Browse files
Merge pull request #12 from LunarClient/chore/centralize-workers-observability
Centralize Workers observability
2 parents f49fe51 + 07d5230 commit cc65bdd

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

wrangler.jsonc

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,28 @@
1515
"custom_domain": true
1616
}
1717
],
18-
// Exported to Better Stack via the OTLP destinations configured in the
19-
// Cloudflare dashboard (Workers & Pages -> Observability -> Telemetry).
20-
// persist: true also retains everything in the CF dashboard.
18+
// Persist observability in Cloudflare and forward invocations to the central Tail Worker.
2119
"observability": {
2220
"enabled": true,
2321
"logs": {
2422
"enabled": true,
25-
"destinations": ["betterstack-logs"],
23+
"destinations": [],
2624
"head_sampling_rate": 1.0,
25+
"invocation_logs": true,
2726
"persist": true
2827
},
2928
"traces": {
3029
"enabled": true,
31-
"destinations": ["betterstack-traces"],
32-
"head_sampling_rate": 1.0,
30+
"destinations": [],
31+
"head_sampling_rate": 0.01,
3332
"persist": true
3433
}
3534
},
35+
"tail_consumers": [
36+
{
37+
"service": "moonsworth-workers-observability"
38+
}
39+
],
3640
"vars": {
3741
"PUBLIC_SERVER_API_URL": "https://sky.shiiyu.moe/api/",
3842
"PUBLIC_API_URL": "https://sky.shiiyu.moe/api/"

0 commit comments

Comments
 (0)