_recordRequest(proxyReq) { this.tracer.recordServiceName(this.serviceName); this.tracer.recordRpc(proxyReq.method.toUpperCase()); this.tracer.recordBinary('http.path', getPathnameFromPath(proxyReq.path)); this.tracer.recordAnnotation(new Annotation.ClientSend()); if (this.remoteServiceName) { this.tracer.recordAnnotation(new Annotation.ServerAddr({ serviceName: this.remoteServiceName, port: parseInt(proxyReq.port) })); } }
tracer.letId(id, () => { tracer.recordAnnotation(new Annotation.ClientSend()); tracer.recordAnnotation(new Annotation.ServiceName(serviceName)); tracer.recordAnnotation(new Annotation.ServerAddr({ serviceName: remoteServiceName, host: new InetAddress(this.host), port: this.port.toString() })); tracer.recordRpc(`query ${this.database}`); });
function commonAnnotations(rpc) { tracer.recordAnnotation(new Annotation.ClientSend()); tracer.recordAnnotation(new Annotation.ServiceName(serviceName)); tracer.recordRpc(rpc); }
function commonAnnotations(rpc) { tracer.recordRpc(rpc); tracer.recordAnnotation(new Annotation.ServiceName(serviceName)); tracer.recordAnnotation(new Annotation.ServerAddr(sa)); tracer.recordAnnotation(new Annotation.ClientSend()); }
/** * Records start of RPC request * @param {grpc.Metadata} metadata * @param {string} method * @return {zipkin.TraceId} */ start(metadata, method) { const traceId = this.tracer.createChildId(); this.tracer.letId(traceId, () => { this.tracer.recordServiceName(this.serviceName); this.tracer.recordRpc(method); this.tracer.recordAnnotation(new Annotation.ClientSend()); if (this.remoteServiceName) { this.tracer.recordAnnotation(new Annotation.ServerAddr({ serviceName: this.remoteServiceName })); } }); return traceId; }
tracer.setId(id); tracer.recordAnnotation(new Annotation.ServerAddr({serviceName: 'test'})); tracer.recordAnnotation(new Annotation.ClientSend()); tracer.recordAnnotation(new Annotation.ClientRecv()); setTimeout(() => {
tracer.letId(id, () => { tracer.recordAnnotation(new Annotation.ClientSend()); tracer.recordAnnotation(new Annotation.ServiceName(serviceName)); tracer.recordAnnotation(new Annotation.ServerAddr({ serviceName: remoteServiceName, host: new InetAddress(this.host), port: this.port.toString() })); tracer.recordRpc(`query ${this.database}`); });
_recordRequest(proxyReq) { this.tracer.recordServiceName(this.serviceName); this.tracer.recordRpc(proxyReq.method.toUpperCase()); this.tracer.recordBinary('http.path', getPathnameFromPath(proxyReq.path)); this.tracer.recordAnnotation(new Annotation.ClientSend()); if (this.remoteServiceName) { this.tracer.recordAnnotation(new Annotation.ServerAddr({ serviceName: this.remoteServiceName, port: parseInt(proxyReq.port) })); } }
function commonAnnotations(rpc) { tracer.recordAnnotation(new Annotation.ClientSend()); tracer.recordAnnotation(new Annotation.ServiceName(serviceName)); tracer.recordRpc(rpc); }
function commonAnnotations(rpc) { tracer.recordAnnotation(new Annotation.ClientSend()); tracer.recordAnnotation(new Annotation.ServiceName(serviceName)); tracer.recordRpc(rpc); }
function commonAnnotations(rpc) { tracer.recordRpc(rpc); tracer.recordAnnotation(new Annotation.ServiceName(serviceName)); tracer.recordAnnotation(new Annotation.ServerAddr(sa)); tracer.recordAnnotation(new Annotation.ClientSend()); }
/** * Records start of RPC request * @param {grpc.Metadata} metadata * @param {string} method * @return {zipkin.TraceId} */ start(metadata, method) { const traceId = this.tracer.createChildId(); this.tracer.letId(traceId, () => { this.tracer.recordServiceName(this.serviceName); this.tracer.recordRpc(method); this.tracer.recordAnnotation(new Annotation.ClientSend()); if (this.remoteServiceName) { this.tracer.recordAnnotation(new Annotation.ServerAddr({ serviceName: this.remoteServiceName })); } }); return traceId; }
tracer.setId(id); tracer.recordAnnotation(new Annotation.ServerAddr({serviceName: 'test'})); tracer.recordAnnotation(new Annotation.ClientSend()); tracer.recordAnnotation(new Annotation.ClientRecv()); setTimeout(() => {