Jelajahi Sumber

降低Sentry 捕获频率

zhejiushizhuce 1 tahun lalu
induk
melakukan
88bbcba849
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      src/index.js

+ 2 - 1
src/index.js

@@ -22,7 +22,8 @@ Sentry.init({
         }),
     ],
     // Performance Monitoring
-    tracesSampleRate: 1.0, //  Capture 100% of the transactions
+    // tracesSampleRate: 1.0, //  Capture 100% of the transactions
+    tracesSampleRate: 0.5, //  Capture 100% of the transactions
     // Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled
     tracePropagationTargets: ["localhost","*", /^https:\/\/yourserver\.io\/api/],
     // Session Replay