소스 검색

降低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