Skip to content

Commit 6fb7a46

Browse files
authored
chore(cdn-worker): updated toucan-js and added more info to Sentry errors (#6507)
1 parent b40cadf commit 6fb7a46

File tree

4 files changed

+45
-53
lines changed

4 files changed

+45
-53
lines changed

packages/services/broker-worker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@whatwg-node/server": "0.9.65",
1414
"esbuild": "0.25.0",
1515
"itty-router": "4.2.2",
16-
"toucan-js": "3.4.0",
16+
"toucan-js": "4.1.0",
1717
"undici": "6.21.1",
1818
"vitest": "3.0.5",
1919
"workers-loki-logger": "0.1.15",

packages/services/cdn-worker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"graphql": "16.9.0",
2828
"itty-router": "4.2.2",
2929
"itty-router-extras": "0.4.6",
30-
"toucan-js": "3.4.0",
30+
"toucan-js": "4.1.0",
3131
"undici": "6.21.1",
3232
"zod": "3.24.1"
3333
}

packages/services/cdn-worker/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,19 @@ const handler: ExportedHandler<Env> = {
8282
release: env.SENTRY_RELEASE,
8383
dist: 'cdn-worker',
8484
context: ctx,
85+
attachStacktrace: true,
8586
request,
8687
requestDataOptions: {
8788
allowedHeaders: [
8889
'user-agent',
89-
'cf-ipcountry',
9090
'accept-encoding',
9191
'accept',
9292
'x-real-ip',
93+
'x-forwarded-for',
94+
'x-request-id',
95+
'cf-ipcountry',
9396
'cf-connecting-ip',
97+
'cf-ray',
9498
],
9599
allowedSearchParams: /(.*)/,
96100
},

pnpm-lock.yaml

Lines changed: 38 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)