Skip to content

Conversation

@RonenMars
Copy link
Contributor

Description

  • Datadog RUM initialization
  • User and organization context setting
  • Enhanced page view tracking
  • Various configuration files for environment and build setup

The integration provides comprehensive monitoring of user interactions, performance metrics, and session recordings.

Linear Ticket

https://linear.app/autokitteh/issue/UI-1898/datadog-browser-session-recordings

What type of PR is this? (check all applicable)

  • 💡 (feat) - A new feature (non-breaking change which adds functionality)
  • 🔄 (refactor) - Code Refactoring - A code change that neither fixes a bug nor adds a feature
  • 🐞 (fix) - Bug Fix (non-breaking change which fixes an issue)
  • 🏎 (perf) - Optimization
  • 📄 (docs) - Documentation - Documentation only changes
  • 📄 (test) - Tests - Adding missing tests or correcting existing tests
  • 🎨 (style) - Styles - Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • ⚙️ (ci) - Continuous Integrations - Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
  • ☑️ (chore) - Chores - Other changes that don't modify src or test files
  • ↩️ (revert) - Reverts - Reverts a previous commit(s).

@RonenMars RonenMars mentioned this pull request Sep 28, 2025
10 tasks
export { getBillingPlanFeatures } from "@constants/lists";
export { billingUpgradeFetchUrlRetries } from "@src/constants/billing.constants";
export { lintViolationRules } from "@constants/project.constants";
export {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the purpose of re exporting here all the constant?

You use Datadog constant directly below

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refactored

projectId,
projectName: name,
});
DatadogUtils.trackEvent("project_created", {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of Datadog util

Call is user tracking util
And abstract datadog / clarity / other stuff we might try in the future

That way you don't have to change it in many places

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

src/main.tsx Outdated

TimeAgo.addDefaultLocale(en);

if (!applicationId || !clientToken || !datadogVersion) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is the only place you use this constants, why you need to define them in another file and export them through a third file just for one place

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point 💪🏼 ! We centralize all constants in src/constants to maintain consistency with our project structure and ensure easy discoverability, even if currently used in only one place.

@RonenMars RonenMars force-pushed the ronen/feat/datadog-screen-recordings branch from 9b26aec to 5f9c2dd Compare October 12, 2025 06:45
Comment on lines 21 to 22
const isClarityInitialized = window.clarity && isProduction && msClarityId;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about datadog?
didn't you expose it as userTracking and hide both clarity and datadog?

@RonenMars RonenMars merged commit fe76806 into main Oct 12, 2025
11 checks passed
@RonenMars RonenMars deleted the ronen/feat/datadog-screen-recordings branch October 12, 2025 15:16
@github-actions
Copy link

🎉 This release is now available on GitHub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants