소스 검색

feat: 调整异常资源采样

zhangyuhan 1 년 전
부모
커밋
32ba567b8f
2개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 0
      src/web/staticres/public-pc/js/detection-min.js
  2. 5 3
      src/web/staticres/public-pc/js/detection.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
src/web/staticres/public-pc/js/detection-min.js


+ 5 - 3
src/web/staticres/public-pc/js/detection.js

@@ -3,9 +3,9 @@
     try {
     try {
       Sentry.init({
       Sentry.init({
         dsn: "https://ea0521e5b3584ca1879b940c165916e4@jysentry.jydev.jianyu360.cn/3",
         dsn: "https://ea0521e5b3584ca1879b940c165916e4@jysentry.jydev.jianyu360.cn/3",
-        release: "v4.8.7930",
+        release: "v4.8.7940",
         environment: "produce",
         environment: "produce",
-        sampleRate: 0.08
+        sampleRate: 0.1
       });
       });
       Sentry.setTag("url", location.href);
       Sentry.setTag("url", location.href);
       var id = document.cookie.match(/(^|;)\s*ud_safe\s*=\s*([^;]+)/);
       var id = document.cookie.match(/(^|;)\s*ud_safe\s*=\s*([^;]+)/);
@@ -338,7 +338,9 @@
 
 
       sendError(new Error('Error CDN'), {
       sendError(new Error('Error CDN'), {
         level: 'info',
         level: 'info',
-        tags: filterErrorURL(domains).join('、'),
+        tags: {
+          cdn: domains.join('、')
+        },
         extra: {
         extra: {
           domains: domains,
           domains: domains,
           failedResources: failedResources
           failedResources: failedResources

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.