瀏覽代碼

降低Sentry 捕获频率

zhejiushizhuce 1 年之前
父節點
當前提交
88bbcba849
共有 1 個文件被更改,包括 2 次插入 和 1 次删除
  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