Authored by htoooth

fix

... ... @@ -159,8 +159,8 @@ async function handleClientTiming(scope, item) {
pageLoadTime: _.parseInt(item.rrt || '0'),
screenWidth: _.parseInt(item.sw || '0'),
screenHeight: _.parseInt(item.sh || '0'),
useragent: scope.useragent || 'unknown',
os: item.pf || 'unknown',
useragent: scope.useragent || '',
os: item.pf || '',
ip: scope.ip || '0.0.0.0',
browserName: agent.family || 'unknown',
browserVersion: agent.toVersion() || 'unknown',
... ... @@ -168,6 +168,10 @@ async function handleClientTiming(scope, item) {
osVersion: agent.os.toVersion() || 'unknown'
};
if (!(data.responseTime >= 0 && data.responseTime <= 10000)) {
return;
}
const ipInfo = ipService.getIsp(scope.ip);
_.merge(data, ipInfo);
... ...
ALTER TABLE error_report MODIFY udid varchar(250);
ALTER TABLE error_report MODIFY route varchar(500);
ALTER TABLE error_report MODIFY useragent text;
ALTER TABLE error_report MODIFY url text;
ALTER TABLE slow_duration_new MODIFY udid varchar(250);
ALTER TABLE slow_duration_new MODIFY route varchar(500);
ALTER TABLE perf_report MODIFY useragent text;
ALTER TABLE perf_report MODIFY browserName varchar(100);
ALTER TABLE perf_report MODIFY browserVersion varchar(100);
ALTER TABLE perf_report MODIFY osName varchar(100);
ALTER TABLE perf_report MODIFY osVersion varchar(100);
ALTER TABLE perf_report MODIFY url text;
\ No newline at end of file
... ...