Skip to content

Commit 30b77e0

Browse files
authored
Enable tracing and fix local development (cloudflare#237)
* enable tracing and fix local development * pin tagged-logger version * fix type issues * fix type issues * fix format issues * remove missed email comment
1 parent 3138c24 commit 30b77e0

39 files changed

+168
-102
lines changed

apps/ai-gateway/.dev.vars.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ CLOUDFLARE_CLIENT_ID=
22
CLOUDFLARE_CLIENT_SECRET=
33
DEV_DISABLE_OAUTH=
44
DEV_CLOUDFLARE_API_TOKEN=
5-
DEV_CLOUDFLARE_EMAIL=
5+

apps/ai-gateway/wrangler.jsonc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
}
1616
],
1717
"observability": {
18-
"enabled": true
18+
"enabled": true,
19+
"traces": {
20+
"enabled": true,
21+
"head_sampling_rate": 0.1
22+
}
1923
},
2024
"durable_objects": {
2125
"bindings": [

apps/auditlogs/.dev.vars.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ CLOUDFLARE_CLIENT_ID=
22
CLOUDFLARE_CLIENT_SECRET=
33
DEV_DISABLE_OAUTH=
44
DEV_CLOUDFLARE_API_TOKEN=
5-
DEV_CLOUDFLARE_EMAIL=

apps/auditlogs/wrangler.jsonc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
}
1616
],
1717
"observability": {
18-
"enabled": true
18+
"enabled": true,
19+
"traces": {
20+
"enabled": true,
21+
"head_sampling_rate": 0.1
22+
}
1923
},
2024
"durable_objects": {
2125
"bindings": [

apps/autorag/.dev.vars.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ CLOUDFLARE_CLIENT_ID=
22
CLOUDFLARE_CLIENT_SECRET=
33
DEV_DISABLE_OAUTH=
44
DEV_CLOUDFLARE_API_TOKEN=
5-
DEV_CLOUDFLARE_EMAIL=
5+

apps/autorag/wrangler.jsonc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
}
1616
],
1717
"observability": {
18-
"enabled": true
18+
"enabled": true,
19+
"traces": {
20+
"enabled": true,
21+
"head_sampling_rate": 0.1
22+
}
1923
},
2024
"durable_objects": {
2125
"bindings": [

apps/browser-rendering/.dev.vars.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ CLOUDFLARE_CLIENT_ID=
22
CLOUDFLARE_CLIENT_SECRET=
33
DEV_DISABLE_OAUTH=
44
DEV_CLOUDFLARE_API_TOKEN=
5-
DEV_CLOUDFLARE_EMAIL=
5+

apps/browser-rendering/wrangler.jsonc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
}
1616
],
1717
"observability": {
18-
"enabled": true
18+
"enabled": true,
19+
"traces": {
20+
"enabled": true,
21+
"head_sampling_rate": 0.1
22+
}
1923
},
2024
"durable_objects": {
2125
"bindings": [

apps/cloudflare-one-casb/.dev.vars.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ CLOUDFLARE_CLIENT_ID=
22
CLOUDFLARE_CLIENT_SECRET=
33
DEV_DISABLE_OAUTH=
44
DEV_CLOUDFLARE_API_TOKEN=
5-
DEV_CLOUDFLARE_EMAIL=

apps/cloudflare-one-casb/wrangler.jsonc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414
}
1515
],
1616
"observability": {
17-
"enabled": true
17+
"enabled": true,
18+
"traces": {
19+
"enabled": true,
20+
"head_sampling_rate": 0.1
21+
}
1822
},
1923
"vars": {
2024
"MCP_SERVER_NAME": "PLACEHOLDER",

0 commit comments

Comments
 (0)