Skip to content

Commit bd7a42b

Browse files
authored
Update tracePropagationTargets and replaysSessionSampleRate
1 parent 890fb14 commit bd7a42b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ Sentry.init({
4141
// Tracing
4242
tracesSampleRate: 1.0, // Capture 100% of the transactions
4343
// Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled
44-
tracePropagationTargets: ["localhost", /^https:\/\/yourserver\.io\/api/],
44+
tracePropagationTargets: ["localhost", /^https:\/\/kv-service\.(houlang\.cloud|wuyuan\.dev)/],
4545
// Session Replay
46-
replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.
46+
replaysSessionSampleRate: 0.01, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.
4747
replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.
4848
// Logs
4949
enableLogs: true

0 commit comments

Comments
 (0)