in static/js/tracker.js [1746:1805]
function e(e) {
var t = this.options,
n = this.params,
r = new Date().getTime();
return e().then(function () {
var e = t.retJson.ret,
a = new Date().getTime() - r;
e instanceof Array && (e = e.join(','));
var c = o.a.getConfig('plugin_api') || {},
u = {};
if ('function' == typeof c.parseResponse)
try {
u =
c.parseResponse(t.retJson, '', {
type: 'mtop',
params: n.data,
url: n.api,
}) || {};
} catch (e) {}
var f =
void 0 === u.success ? -1 === e.indexOf('SUCCESS') : !u.success;
if (f || !c.disable_send_on_success) {
var p,
d,
l,
y = t.retJson.code || 200,
h = t.retJson.responseHeaders;
if ('string' == typeof h) {
var g = h.match(
/(x-eagleeye-id|eagleeye-traceid):\s*([a-z0-9]+)/
);
g && (p = g[2]);
var v = h.match(/status:\s*(\d+)/);
v && (y = v[1]);
}
if (e) {
var m = e.split('::');
(d = m[0]), (l = m[1]);
}
s(
i(
{
url: n.api,
success: !f,
method: n.type || 'GET',
msg: l,
status: y,
code: d,
duration: a,
traceId: p,
params: n.data,
response: b()(t.retJson),
rtype: 'mtop',
},
u
)
);
}
});
}