diff --git a/web-backend/server.js b/web-backend/server.js index d3c40cf3..feed2af4 100644 --- a/web-backend/server.js +++ b/web-backend/server.js @@ -363,7 +363,8 @@ app.use('/api/app/proxy', requireAuth, async (req, res) => { headers: { 'Authorization': `Bearer ${req.session.tokens.access_token}`, 'Content-Type': req.headers['content-type'] || 'application/json', - 'Accept': req.headers.accept || 'application/json' + 'Accept': req.headers.accept || 'application/json', + 'Document Policy': `js-profiling` }, body: req.method !== 'GET' && req.method !== 'HEAD' ? JSON.stringify(req.body) : undefined }) diff --git a/web-frontend/src/services/DatadogRum.js b/web-frontend/src/services/DatadogRum.js index 3590561f..57672df2 100644 --- a/web-frontend/src/services/DatadogRum.js +++ b/web-frontend/src/services/DatadogRum.js @@ -46,6 +46,8 @@ export const initializeDatadogRum = () => { trackLongTasks: true, defaultPrivacyLevel: 'mask-user-input', allowedTracingUrls: [(url) => true], + // for RUM Profiling - currently feature flagged + profilingSampleRate: 100, // TODO - turn this on if we start using the react router! //plugins: [reactPlugin({ router: true })], });