public void login(String id) { ctx.login = id; }
public void desc(String desc) { ctx.desc = desc; }
public void group(String group) { ctx.group = group; }
public void error(String err) { if (ctx.error == 0) { ctx.error = DataProxy.sendError(err); } }
public void remoteIp(String ip) { ctx.remoteIp = ip; }
public void service(String name) { if (name == null) return; ctx.serviceHash = HashUtil.hash(name); ctx.serviceName = name; }
public TraceContext createChild() { TraceContext child = new TraceContext(this.isSummary); child.parent = this; child.txid = this.txid; child.thread = this.thread; child.threadId = this.threadId; child.gxid = this.gxid; // child.profile = this.profile; child.startTime = this.startTime; if (this.profile_thread_cputime) { child.startCpu = SysJMX.getCurrentThreadCPU(); } child.bytes = this.bytes; child.status = this.status; child.xType = this.xType; child.serviceHash = this.serviceHash; child.serviceName = this.serviceName; child.remoteIp = this.remoteIp; child.http_method = this.http_method; child.http_query = this.http_query; child.http_content_type = this.http_content_type; // child.sqlCount = this.sqlCount; // child.sqlTime = this.sqlTime; // child.sqltext = this.sqltext; // child.apicall_name = this.apicall_name; // child.apicall_count = this.apicall_count; // child.apicall_time = this.apicall_time; // child.rs_start = this.rs_start; // child.rs_count = this.rs_count; // child.sql = this.sql; child.userid = this.userid; child.userAgent = this.userAgent; child.referer = this.referer; // child.opencon = this.opencon; child.profile_thread_cputime = this.profile_thread_cputime; child.is_child_tx = this.is_child_tx; child.caller = this.caller; child.callee = this.callee; return child; }