import { datadogRum } from "@datadog/browser-rum";
import { reactPlugin } from "@datadog/browser-rum-react";

datadogRum.init({
  applicationId: "8e268e1a-1be0-44c6-b12a-978530d497c7",
  clientToken: "pub1761af09ab04e215cc90d34da6ac576b",
  site: "datadoghq.com",
  service: "xtablo-clients-ui",
  env: import.meta.env.MODE,
  version: import.meta.env.VITE_APP_VERSION,

  sessionSampleRate: 100,
  sessionReplaySampleRate: 80,
  defaultPrivacyLevel: "mask-user-input",
  plugins: [reactPlugin({ router: true })],
  trackViewsManually: true,
  trackUserInteractions: true,
  trackResources: true,
  trackingConsent: "granted",
  startSessionReplayRecordingManually: false,
});

export default datadogRum;
