Remote procedure call tracking method and device
A remote procedure call and tracking device technology, which is applied in the field of remote procedure call tracking methods and devices, can solve the problems of inaccurate and convenient RPC call tracking, non-uniform print log format, and large intrusive business code, so as to facilitate further processing and The effect of the analysis
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0034] see figure 1 , is a flow chart of the remote procedure call tracing method according to the first embodiment of the present invention. The remote procedure call tracking method of the first embodiment of the present invention includes the following steps:
[0035] Step 100: initiate an RPC call to the current application;
[0036] Step 110: Automatically generate the unique request identifier ReqID and the RPC call identifier RpcID of the current RPC call;
[0037] In step 110, when Thrift is used for network RPC calls, the embodiment of the present invention automatically transparently embeds the request identifier ReqID and the call identifier RpcID of the current RPC call in the API call interface through the Thrift framework, which is completely transparent to upper-layer service-related calls. No intrusion into business code.
[0038] Step 120: Transmitting the request identifier ReqID and the call identifier RpcID of the current RPC call to the next RPC call; ...
Embodiment 2
[0042] see figure 2 and image 3 , figure 2 is a flow chart of the remote procedure call tracking method according to the second embodiment of the present invention, image 3 It is a macro logic diagram of RPC call tracking in the embodiment of the present invention. The remote procedure call tracking method of the second embodiment of the present invention includes the following steps:
[0043] Step 200: the user initiates an RPC call to the current application;
[0044] Step 210: The client stub code of the Thrift framework automatically generates the globally unique request identifier ReqID for the current RPC call, and at the same time passes the RpcID (ie ParentRpcID) of the upper-layer RPC call to the current RPC call, and generates an RPC call identifier RpcID for the current RPC call ;At the same time, the Thrift framework automatically records the start time and end time of the current RPC call, as well as the parameter sampling data of the current RPC call;
...
Embodiment 3
[0050] see Figure 5 , is a schematic structural diagram of the remote procedure call tracking device according to the first embodiment of the present invention. The remote procedure call tracking device according to the first embodiment of the present invention includes:
[0051] Call initiation module 10: for initiating an RPC call to the current application;
[0052] Code generation module 20: used to automatically generate the unique request identifier ReqID and RPC call identifier RpcID of the current RPC call, and transmit the request identifier ReqID and call identifier RpcID of the current RPC call to the next RPC call; wherein, when using Thrift for network When RPC calls, the embodiment of the present invention automatically and transparently embeds the request identifier ReqID and the call identifier RpcID of the current RPC call in the API call interface, which is completely transparent to the call related to the upper layer business and has no intrusion to the bu...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com