Authored by htoooth

fix

@@ -159,8 +159,8 @@ async function handleClientTiming(scope, item) { @@ -159,8 +159,8 @@ async function handleClientTiming(scope, item) {
159 pageLoadTime: _.parseInt(item.rrt || '0'), 159 pageLoadTime: _.parseInt(item.rrt || '0'),
160 screenWidth: _.parseInt(item.sw || '0'), 160 screenWidth: _.parseInt(item.sw || '0'),
161 screenHeight: _.parseInt(item.sh || '0'), 161 screenHeight: _.parseInt(item.sh || '0'),
162 - useragent: scope.useragent || 'unknown',  
163 - os: item.pf || 'unknown', 162 + useragent: scope.useragent || '',
  163 + os: item.pf || '',
164 ip: scope.ip || '0.0.0.0', 164 ip: scope.ip || '0.0.0.0',
165 browserName: agent.family || 'unknown', 165 browserName: agent.family || 'unknown',
166 browserVersion: agent.toVersion() || 'unknown', 166 browserVersion: agent.toVersion() || 'unknown',
@@ -168,6 +168,10 @@ async function handleClientTiming(scope, item) { @@ -168,6 +168,10 @@ async function handleClientTiming(scope, item) {
168 osVersion: agent.os.toVersion() || 'unknown' 168 osVersion: agent.os.toVersion() || 'unknown'
169 }; 169 };
170 170
  171 + if (!(data.responseTime >= 0 && data.responseTime <= 10000)) {
  172 + return;
  173 + }
  174 +
171 const ipInfo = ipService.getIsp(scope.ip); 175 const ipInfo = ipService.getIsp(scope.ip);
172 176
173 _.merge(data, ipInfo); 177 _.merge(data, ipInfo);
  1 +ALTER TABLE error_report MODIFY udid varchar(250);
  2 +ALTER TABLE error_report MODIFY route varchar(500);
  3 +ALTER TABLE error_report MODIFY useragent text;
  4 +ALTER TABLE error_report MODIFY url text;
  5 +
  6 +ALTER TABLE slow_duration_new MODIFY udid varchar(250);
  7 +ALTER TABLE slow_duration_new MODIFY route varchar(500);
  8 +
  9 +ALTER TABLE perf_report MODIFY useragent text;
  10 +ALTER TABLE perf_report MODIFY browserName varchar(100);
  11 +ALTER TABLE perf_report MODIFY browserVersion varchar(100);
  12 +ALTER TABLE perf_report MODIFY osName varchar(100);
  13 +ALTER TABLE perf_report MODIFY osVersion varchar(100);
  14 +ALTER TABLE perf_report MODIFY url text;