Skip to content

Commit 85e3647

Browse files
committed
upgrade sentry
1 parent c073c91 commit 85e3647

File tree

8 files changed

+480
-609
lines changed

8 files changed

+480
-609
lines changed

packages/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@rollup/plugin-replace": "^6.0.2",
4242
"@rollup/plugin-typescript": "^12.1.4",
4343
"@stream-io/audio-filters-web": "workspace:^",
44-
"@stream-io/node-sdk": "^0.7.6",
44+
"@stream-io/node-sdk": "^0.7.7",
4545
"@total-typescript/shoehorn": "^0.1.2",
4646
"@types/sdp-transform": "^2.15.0",
4747
"@types/ua-parser-js": "^0.7.39",

sample-apps/react/egress-composite/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"@emotion/css": "^11.13.5",
15-
"@sentry/react": "^8.55.0",
15+
"@sentry/react": "^10.19.0",
1616
"@stream-io/video-react-sdk": "workspace:^",
1717
"clsx": "^2.0.0",
1818
"js-base64": "^3.7.8",
@@ -21,7 +21,7 @@
2121
},
2222
"devDependencies": {
2323
"@playwright/test": "^1.56.0",
24-
"@sentry/vite-plugin": "^2.23.1",
24+
"@sentry/vite-plugin": "^4.3.0",
2525
"@types/react": "~19.1.17",
2626
"@types/react-dom": "~19.1.11",
2727
"@vitejs/plugin-react": "^5.0.4",

sample-apps/react/messenger-clone/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
},
1414
"dependencies": {
1515
"@mui/icons-material": "^6.5.0",
16+
"@mui/material": "^6.5.0",
1617
"@stream-io/video-react-sdk": "workspace:^",
1718
"clsx": "^2.0.0",
1819
"dayjs": "^1.11.6",

sample-apps/react/react-dogfood/sentry.client.config.ts renamed to sample-apps/react/react-dogfood/instrumentation-client.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ import * as Sentry from '@sentry/nextjs';
55

66
const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN;
77

8+
export const onRouterTransitionStart = Sentry.captureRouterTransitionStart;
9+
810
if (window.location.href.includes('no-trace')) {
911
console.log('Opting out from Sentry');
1012
} else {
1113
console.log('Setting up Sentry');
1214
Sentry.init({
1315
dsn: SENTRY_DSN,
1416

17+
sendDefaultPii: true,
18+
1519
// Adjust this value in production, or use tracesSampler for greater control
1620
tracesSampleRate: 1,
1721

sample-apps/react/react-dogfood/instrumentation.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ import * as Sentry from '@sentry/nextjs';
55

66
const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN;
77

8+
export const onRequestError = Sentry.captureRequestError;
9+
810
export function register() {
911
if (process.env.NEXT_RUNTIME === 'nodejs') {
1012
Sentry.init({
1113
dsn: SENTRY_DSN,
14+
sendDefaultPii: true,
1215

1316
// Adjust this value in production, or use tracesSampler for greater control
1417
tracesSampler: (samplingContext) => {
@@ -26,6 +29,7 @@ export function register() {
2629
} else if (process.env.NEXT_RUNTIME === 'edge') {
2730
Sentry.init({
2831
dsn: SENTRY_DSN,
32+
sendDefaultPii: true,
2933

3034
// Adjust this value in production, or use tracesSampler for greater control
3135
tracesSampleRate: 1,

sample-apps/react/react-dogfood/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
"@floating-ui/dom": "^1.6.13",
1313
"@floating-ui/react": "^0.27.6",
1414
"@next/third-parties": "^15.5.4",
15-
"@sentry/nextjs": "^8.55.0",
15+
"@sentry/nextjs": "^10.19.0",
1616
"@stream-io/audio-filters-web": "workspace:^",
17-
"@stream-io/node-sdk": "^0.7.6",
17+
"@stream-io/node-sdk": "^0.7.7",
1818
"@stream-io/video-filters-web": "workspace:^",
1919
"@stream-io/video-react-sdk": "workspace:^",
2020
"@stream-io/video-styling": "workspace:^",
@@ -37,7 +37,7 @@
3737
"stream-chat": "^9.22.0",
3838
"stream-chat-react": "^13.9.0",
3939
"swr": "^2.3.6",
40-
"yargs": "^17.7.2"
40+
"yargs": "^18.0.0"
4141
},
4242
"devDependencies": {
4343
"@types/geojson": "^7946.0.16",

sample-apps/react/react-dogfood/pages/api/call/create.ts

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ const createCallSlackHookAPI = async (
1212
const { _, $0, ...args } = await yargs().parse(req.body.text || '');
1313
const queryParams = new URLSearchParams(args as Record<string, string>);
1414

15-
// handle the special case /pronto --edges
16-
if (queryParams.get('edges')) {
17-
const message = await listAvailableEdges();
18-
return res.status(200).json(message);
19-
}
20-
2115
try {
2216
const cid = queryParams.get('cid');
2317
if (cid) {
@@ -100,36 +94,4 @@ const notifyError = (message: string) => {
10094
};
10195
};
10296

103-
const listAvailableEdges = async () => {
104-
const chunkedMessages = [
105-
`
106-
Static edges:
107-
sfu-000c954.fdc-ams1.stream-io-video.com
108-
sfu-039364a.lsw-ams1.stream-io-video.com
109-
sfu-9c050b4.ovh-lon1.stream-io-video.com
110-
sfu-9c0dc03.ovh-lim1.stream-io-video.com
111-
sfu-9f0306f.eqx-nyc1.stream-io-video.com
112-
sfu-a69b58a.blu-tal1.stream-io-video.com
113-
sfu-e74550c.aws-sin1.stream-io-video.com
114-
sfu-f079b1a.dpk-den1.stream-io-video.com
115-
sfu-dd73d37.aws-mum1.stream-io-video.com
116-
`,
117-
];
118-
119-
// https://app.slack.com/block-kit-builder/
120-
// useful too for testing the formatting of the Slack messages
121-
return {
122-
response_type: 'ephemeral', // notify just the initiator
123-
blocks: chunkedMessages.map((msg) => {
124-
return {
125-
type: 'section',
126-
text: {
127-
type: 'mrkdwn',
128-
text: `Available edges: \`\`\`${msg.trim()}\`\`\``,
129-
},
130-
};
131-
}),
132-
};
133-
};
134-
13597
export default createCallSlackHookAPI;

0 commit comments

Comments
 (0)