...
|
...
|
@@ -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);
|
...
|
...
|
|