Skip to content

Commit

Permalink
Feat: DataDog init
Browse files Browse the repository at this point in the history
  • Loading branch information
soulchicken committed Oct 14, 2023
1 parent f488fee commit 33cb3e0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@ import type { AppProps } from 'next/app';
import GlobalStyles from '@/styles/GlobalStyles';
import { SessionProvider } from 'next-auth/react';
import GA from '@/components/common/head/GA';
import { datadogRum } from '@datadog/browser-rum';

datadogRum.init({
applicationId: '2e271a0d-bf2a-4465-8ef1-59bd1c2eceb7',
clientToken: 'pub30feb69c70c140b8f84ae56e3fea50f7',
site: 'ap1.datadoghq.com',
service: 'front',
env: 'staging-1',
// 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',
});

datadogRum.startSessionReplayRecording();

const App = ({ Component, pageProps }: AppProps) => (
<>
Expand Down

0 comments on commit 33cb3e0

Please sign in to comment.