From b76926df1e36cda4e7ae6e1048d56bbaa2043005 Mon Sep 17 00:00:00 2001 From: seaerchin <44049504+seaerchin@users.noreply.github.com> Date: Tue, 28 May 2024 18:40:19 +0800 Subject: [PATCH] chore: add frustration (#1888) had to remove as const cast as the lib type doesn't allow readonly assignment --- src/constants/datadog.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/constants/datadog.ts b/src/constants/datadog.ts index e5ec0d4c7..169a523a3 100644 --- a/src/constants/datadog.ts +++ b/src/constants/datadog.ts @@ -1,4 +1,9 @@ -export const DATADOG_RUM_SETTINGS = { +import { RumInitConfiguration } from "@datadog/browser-rum" + +export const DATADOG_RUM_SETTINGS: Omit< + RumInitConfiguration, + "applicationId" | "clientToken" +> = { sessionSampleRate: 100, sessionReplaySampleRate: 100, trackUserInteractions: true, @@ -6,4 +11,4 @@ export const DATADOG_RUM_SETTINGS = { trackLongTasks: true, defaultPrivacyLevel: "mask-user-input", enableExperimentalFeatures: ["clickmap"], -} as const +}