Skip to content

Commit 0d28e20

Browse files
authored
chore: skip dd rum if on landing page and add version (#1218)
## Problem Cloudflare worker for datadog RUM proxy have been close to hitting limits recently. ## Solution Do not send if user is not authenticated: the only pages accessible will be landing page, use cases, and Tiles read-only page. ## Other changes * Add app version
1 parent 59c58e4 commit 0d28e20

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/frontend/src/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ if (['prod', 'staging'].includes(appConfig.env)) {
3636
trackResources: true,
3737
trackLongTasks: true,
3838
defaultPrivacyLevel: 'mask-user-input',
39+
version: appConfig.version,
40+
beforeSend: (event) => {
41+
// do not send if user is anonymous
42+
return event.usr !== undefined
43+
},
3944
})
4045
}
4146
root.render(

0 commit comments

Comments
 (0)