communitybridge / easycla

The Contributor License Agreement (CLA) service of the Linux Foundation lets project contributors read, sign, and submit contributor license agreements easily.
https://easycla.lfx.linuxfoundation.org
MIT License
64 stars 45 forks source link

Test: Add CLA Corporate Console to Datadog Session Replays #4440

Open thakurveerendras opened 1 week ago

thakurveerendras commented 1 week ago

Summary

Add CLA Corporate Console to Datadog Session Replays

Background

We need to instrument Session Replay on the CLA Corporate Console to help with troubleshooting issues there. We have the section ready in Datadog at https://app.datadoghq.com/rum/sessions?query=%40application.id%3Aea9b5eb2-c3e0-4e58-a5a6-b3c41212dd05 %40type%3Asession&agg_m=count&agg_m_source=base&agg_t=count&cols=&fromUser=false&track=rum&from_ts=1723068256724&to_ts=1723154656724&live=true This would be set up the same as the Organization Dashboard is, making sure that we get the User’s username to come through as the User ID in datadog in order to search replays. Documentation : RUM Browser Monitoring Setup

The values in DD for the Easycla Corporate console are:

import { datadogRum } from '@datadog/browser-rum';

datadogRum.init({ applicationId: 'ea9b5eb2-c3e0-4e58-a5a6-b3c41212dd05', clientToken: 'pubb7e17154a9ac48f85b92ad67e1de451a', // site refers to the Datadog site parameter of your organization // see https://docs.datadoghq.com/getting_started/site/ site: 'datadoghq.com', service: 'easycla-corporate-console', env: '', // Specify a version number to identify the deployed version of your application in Datadog // version: '1.0.0', sessionSampleRate: 100, sessionReplaySampleRate: 20, trackUserInteractions: true, trackResources: true, trackLongTasks: true, defaultPrivacyLevel: 'mask-user-input', });

thakurveerendras commented 1 week ago

Tested dataDog traces & session on the dev site & found that it properly appears Refer to the screenshot image