Service link processing method, electronic device, storage medium and program

By analyzing log data to generate business link data, the server resource occupation and system stability problems caused by the business link generation method in the prior art are solved, and the efficient and stable operation of the business system is achieved.

CN119996541APending Publication Date: 2025-05-13BEIJING YOUTEJIE INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510257508.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-05
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

The existing business link generation method requires running additional programs on the main program, resulting in an increase in server resource usage and an increase in program failure risk, affecting the stability of the business system.

Method used

By obtaining the log data of the current node, including request messages, response messages and IP information of the target server, these data are parsed to determine the link node location of the current node, and generate service link data to realize the generation and tracking of the service link.

Benefits of technology

It simplifies the generation process of business links, reduces the occupation of server resources, reduces the risk of program failure, and ensures the efficient and stable operation of the business system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996541A_ABST
    Figure CN119996541A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a service link processing method, electronic equipment, a storage medium and a program, and the method comprises the steps: obtaining log data in a current service collected for a current node; the log data comprises a request message, a response message and IP information of a target server requested to be interacted by the current node; analyzing the log data in the current service to obtain request message analysis data and response message analysis data; determining the link node position of the current node according to the request message analysis data, the response message analysis data and the IP information of the target server; and generating service link data according to the request message analysis data, the response message analysis data and the link node position of the current node, and generating a service link of the current service according to the service link data. According to the technical scheme of the embodiment of the invention, the generation process of the service link can be simplified, the occupation of server resources is effectively reduced, and the program fault risk is reduced, so that the efficient and stable operation of a service system is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of data processing technology, and in particular, to a service link processing method, electronic device, storage medium, and program. Background Art

[0002] With the rapid development of informatization, the complexity of program architecture has increased significantly, and the business flow process has become more cumbersome. Although this complexity enhances the functionality and flexibility of the business system, it also brings a higher risk of failure. In this context, it is particularly important to effectively track and locate the business flow process. As the core means to achieve this goal, business link tracking can help staff clearly sort out each link of the business process, accurately locate the source of business system problems, and provide strong support for the rapid resolution of problems.

[0003] At present, the generation of business link data is mainly achieved by inserting code into the service program. However, this method requires running an additional program on the main program, which not only consumes server resources, but also may cause program failures, thus affecting the stability of the business system. Summary of the invention

[0004] The embodiments of the present invention provide a service link processing method, an electronic device, a storage medium and a program, which can simplify the service link generation process, effectively reduce the occupation of server resources, and reduce the risk of program failure, thereby ensuring the efficient and stable operation of the service system.

[0005] According to one aspect of the present invention, a service link processing method is provided, comprising:

[0006] Obtaining log data in the current business collected from the current node; the log data includes request messages, response messages and IP information of the target server with which the current node requests to interact;

[0007] Parsing the log data in the current business to obtain request message parsing data and response message parsing data;

[0008] Determine the link node position of the current node according to the request message parsing data, the response message parsing data and the IP information of the target server;

[0009] The service link data is generated according to the request message parsing data, the response message parsing data and the link node position of the current node, and the service link of the current service is generated according to the service link data.

[0010] According to another aspect of the present invention, there is provided a service link processing device, comprising:

[0011] A log data acquisition module is used to acquire log data in the current business collected from the current node; the log data includes request messages, response messages and IP information of the target server with which the current node requests to interact;

[0012] A log data parsing module, used to parse the log data in the current business to obtain request message parsing data and response message parsing data;

[0013] A link node position determination module, used to determine the link node position of the current node according to the request message parsing data, the response message parsing data and the IP information of the target server;

[0014] A service link generation module is used to generate service link data according to the request message parsing data, the response message parsing data and the link node position of the current node, and generate a service link for the current service according to the service link data.

[0015] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0016] at least one processor; and

[0017] a memory communicatively connected to the at least one processor; wherein,

[0018] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the service link processing method described in any embodiment of the present invention.

[0019] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the service link processing method described in any embodiment of the present invention when executed.

[0020] According to another aspect of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the service link processing method described in any embodiment of the present invention is implemented.

[0021] The embodiment of the present invention obtains log data in the current business collected from the current node, including information such as request messages, response messages and IP information of the target server requested for interaction by the current node, and parses the log data in the current business to obtain request message parsing data and response message parsing data; further, the link node position of the current node can be determined according to the request message parsing data, the response message parsing data and the IP information of the target server, so that business link data can be generated according to the request message parsing data, the response message parsing data and the link node position of the current node, and the business link of the current business is generated according to the business link data, which solves the problems of resource waste and poor system stability in the existing business link generation method, can simplify the business link generation process, effectively reduce the occupation of server resources, and reduce the risk of program failures, thereby ensuring the efficient and stable operation of the business system.

[0022] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0024] Figure 1 is a flow chart of a service link processing method provided by Embodiment 1 of the present invention;

[0025] Figure 2 is a flow chart of a service link processing method provided by Embodiment 2 of the present invention;

[0026] Figure 3 is a schematic diagram of a service link processing system provided by Embodiment 2 of the present invention;

[0027] Figure 4 is a schematic diagram of a service link processing device provided in Embodiment 3 of the present invention;

[0028] Figure 5 A schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0030] It should be noted that the terms "first", "second" and "target" in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0031] Embodiment 1

[0032] Figure 1 This is a flowchart of a service link processing method provided by the first embodiment of the present invention. This embodiment is applicable to the case where a service link is generated according to the log data of the current service. The method can be executed by a service link processing device, which can be implemented by software and / or hardware and can generally be integrated in an electronic device. The electronic device can be a terminal device or a server device. As long as it can execute the service link processing method, the embodiment of the present invention does not limit the specific device type of the electronic device. Accordingly, Figure 1 As shown, the method includes the following operations:

[0033] S110, obtaining log data in the current business collected from the current node; the log data includes a request message, a response message, and IP information of a target server with which the current node requests to interact.

[0034] Among them, the current node can be a node corresponding to a certain link in the business process. The node can be a physical node composed of hardware devices, such as servers and sensors, or a virtual node composed of components of a software system, such as a database module and a business logic processing unit. The current business can be a business that is ongoing or in the current stage of the business process. Exemplarily, the current business can include but is not limited to transaction business, call business, data processing business, and security and risk control business. The embodiment of the present invention does not limit the specific type of the current business. The log data can be detailed information related to the current business operation. The target server can be the server with which the current node requests to interact.

[0035] In an embodiment of the present invention, for generating the completion business link of current business, firstly, a log data collection tool can be deployed on each node of current business. These tools can collect the key information generated by each node in the current business processing process in real time and efficiently, including but not limited to log data such as request message, response message and IP (Internet Protocol, Internet Protocol) information of target server. Request message records all information when client initiates request to server, such as global serial number and request serial number, etc., and these information can help understand the specific needs of client and the context of request. Response message includes the processing result of server to client request, including global serial number, request serial number, response serial number and return status, etc., and by analyzing response message, it can be evaluated whether the processing of server to request is successful and the data content returned. The IP information of target server can be used to identify the specific server address arrived by current node request.

[0036] S120: Parse the log data in the current service to obtain request message parsing data and response message parsing data.

[0037] The request message parsing data may be data obtained by parsing the request message of the log data, and the response message parsing data may be data obtained by parsing the response message of the log data.

[0038] Correspondingly, after obtaining the log data in the current business, the log data in the current business can be deeply parsed to obtain the request message parsing data and the response message parsing data, which provide a reference for the generation and analysis of the business link. The request message parsing data may include but is not limited to the global serial number, the request serial number, the start timestamp and the request type, etc., and the response message parsing data may include but is not limited to the global serial number, the end timestamp, the request serial number, the return status and the request type, etc. The embodiment of the present invention does not limit the specific data content included in the request message parsing data and the response message parsing data.

[0039] In a specific example, assume that the log data of the request message is:

[0040] timestamp:2024-10-1109:01:00,110

[0041] ip:192.168.10.100

[0042] raw_message:2024-10-11 09:01:00,110|info|648731284|Request message|{"seq_no":"G2024101109010011023333435","subseq_no":"T2024101109010011023333435"}.

[0043] Furthermore, the log data of the request message can be parsed through regular rule expressions to obtain the parsed data of the request message. During the parsing process, the starting timestamp of the request message can be extracted and named the starttime field; the global serial number can be extracted and named the seq_no field; the request serial number can be extracted and named the subseq_no field; at the same time, a request type trace_type field is added with a value of "request", and the parsed data of the request message as shown below is obtained:

[0044] timestamp:2024-10-1109:01:00,110

[0045] ip:192.168.10.100

[0046] starttime:2024-10-1109:01:00,110

[0047] seq_no:G2024101109010011023333435

[0048] subseq_no:T2024101109010011023333435

[0049] trace_type:request.

[0050] Assume that the log data of the response message is:

[0051] timestamp:2024-10-1109:01:00,110

[0052] ip:192.168.10.100

[0053] raw_message:2024-10-11 09:01:00,820|info|648731284|Response message|{"seq_no":"G2024101109010011023333435","ret_no":"N2024101109010011023333435","ret_msg":"Processing successful"}.

[0054] Furthermore, the log data of the response message can be parsed through regular rule expressions to obtain the response message parsing data. During the parsing process, the end timestamp of the response message can be extracted and named as the endtime field; the global serial number can be extracted and named as the seq_no field; the request serial number can be extracted and named as the subseq_no field; the response serial number can be extracted and named as the ret_no field; the return status field can be extracted and named as the ret_msg field; at the same time, a request type trace_type field is added with a value of "response", and the response message parsing data shown below is obtained:

[0055] timestamp:2024-10-1109:01:00,110

[0056] ip:192.168.10.100

[0057] endtime:2024-10-1109:01:00,820

[0058] seq_no:G2024101109010011023333435

[0059] subseq_no:T2024101109010011023333435

[0060] ret_no:N2024101109010011023333435

[0061] ret_msg: Processing successful

[0062] trace_type:response.

[0063] S130. Determine the link node position of the current node according to the request message parsing data, the response message parsing data and the IP information of the target server.

[0064] The link node position of the current node may be the position of the current node in the service link. Exemplarily, the link node position may include but is not limited to an initial node, an intermediate node, and a tail node.

[0065] Correspondingly, after obtaining the request message parsing data and the response message parsing data, the link node position of the current node in the business link can be determined according to the request message parsing data, the response message parsing data and the IP information of the target server. The initial node can be the starting point of the current business in the business system, marking the beginning of the current business. For example, in an e-commerce transaction business, the initial node can be the operation of a user submitting an order; in a calling business, the initial node can be the user clicking the corresponding button on the front-end page. The intermediate node can be the node in the business system responsible for executing specific business logic, data processing and service calls. The tail node can be the end point of the current business in the business system, indicating that the current business has been completed.

[0066] S140. Generate service link data according to the request message parsing data, the response message parsing data and the link node position of the current node, and generate a service link for the current service according to the service link data.

[0067] The business link data can be the data of the entire process from data source to data processing and then to data application during the business processing. The business link can be the entire process path from user request or business operation to the final completion of business goal during the business processing.

[0068] Specifically, after determining the link node position of the current node, the business link data can be generated based on the request message parsing data, the response message parsing data and the link node position of the current node. Furthermore, a business link construction tool can be used to generate the business link of the current business based on the business link data, and realize a business link tracking visualization diagram, so that the current business can be monitored based on the business link of the current business, and faults in the current business can be quickly located, thereby ensuring the efficient and stable operation of the business system.

[0069] It can be seen that the technical solution of the embodiment of the present invention obtains request message parsing data and response message parsing data by collecting the log data of each node in the current business and parsing the log data. And the position of the current node in the business link is determined by the parsed log data, without running an additional program in the business system, which can simplify the business link generation process, reduce the occupation of server resources, and reduce the risk of program failure in the business system, thereby ensuring the efficient and stable operation of the business system. At the same time, the current business can be fully tracked and accurately located according to the generated business link, so as to quickly discover potential problems in the business system, optimize the performance of the business system and improve the observability of the business system.

[0070] The embodiment of the present invention obtains log data in the current business collected from the current node, including information such as request messages, response messages and IP information of the target server requested for interaction by the current node, and parses the log data in the current business to obtain request message parsing data and response message parsing data; further, the link node position of the current node can be determined according to the request message parsing data, the response message parsing data and the IP information of the target server, so that business link data can be generated according to the request message parsing data, the response message parsing data and the link node position of the current node, and the business link of the current business is generated according to the business link data, which solves the problems of resource waste and poor system stability in the existing business link generation method, can simplify the business link generation process, effectively reduce the occupation of server resources, and reduce the risk of program failures, thereby ensuring the efficient and stable operation of the business system.

[0071] Embodiment 2

[0072] Figure 2 is a flowchart of a service link processing method provided by Embodiment 2 of the present invention. This embodiment is specific based on the above embodiment. In this embodiment, multiple specific optional implementation methods are provided for determining the link node position of the current node according to the request message parsing data, the response message parsing data and the IP information of the target server, and generating service link data according to the request message parsing data, the response message parsing data and the link node position of the current node. Accordingly, Figure 2 As shown, the method of this embodiment may include:

[0073] S210, obtaining log data in the current business collected from the current node; the log data includes a request message, a response message, and IP information of a target server with which the current node requests to interact.

[0074] S220: Parse the log data in the current service to obtain request message parsing data and response message parsing data.

[0075] S230, determine whether the global serial numbers of the request message parsing data and the response message parsing data of the current node are the same, if so, execute S40, otherwise, end the operation.

[0076] Among them, the global serial number can be a number used to uniquely identify a business operation or request in the current business process. The global serial number remains unique in the entire business system and can track and locate specific business operations in complex business links. Therefore, the request message parsing data and the response message parsing data can be screened according to the global serial number. If the global serial numbers of the request message parsing data and the response message parsing data are the same, it means that the request message parsing data and the response message parsing data belong to the log data of the same business; if the global serial numbers of the request message parsing data and the response message parsing data are different, it means that the request message parsing data and the response message parsing data do not belong to the log data of the same business.

[0077] S240. Time-sort the request message parsing data and the response message parsing data of the current node to obtain a message data parsing result sequence.

[0078] In an embodiment of the present invention, when it is determined that the global serial numbers of the request message parsing data and the response message parsing data of the current node are the same, the request message parsing data and the response message parsing data of the current node can be time-sorted according to the timestamp field, so that a message data parsing result sequence can be obtained.

[0079] S250: Determine the link node position of the current node according to the message data parsing result sequence and the IP information of the target server.

[0080] Accordingly, after obtaining the message data parsing result sequence, the specific position of the current node in the service link can be further accurately determined based on the message data parsing result sequence and the IP information of the target server. The above method can simplify the process of determining the link node position of the current node in the process of generating the service link, thereby reducing the occupation of server resources.

[0081] In an optional embodiment of the present invention, determining the link node position of the current node based on the message data parsing result sequence and the IP information of the target server may include: when it is determined that the IP information of the target server with which the current node requests to interact is one, determining the number of request messages and the number of response messages included in the current node based on the message data parsing result sequence of the current node; when it is determined that the number of request messages is greater than or equal to a set number, and when it is determined that the number of response messages is greater than or equal to the set number, determining that the current node is an intermediate node.

[0082] The set number may be a preset number value. For example, the set number may be 2, and the embodiment of the present invention does not limit the specific value of the set number.

[0083] In an embodiment of the present invention, in the process of determining the link node position of the current node according to the sequence of message data parsing results, the IP information of the target server that the current node requests to interact with can be first judged. When the IP information of the target server is the same, it can be determined that the request message and the response message belong to the message data of the same node; when it is determined that the IP information of the target server is different, it can be determined that the request message and the response message do not belong to the message data of the same node. Further, the number of request messages and the number of response messages belonging to the same node in the current node can be judged. When it is determined that the number of request messages and the number of response messages belonging to the same node are both greater than or equal to the set number, the link node position of the current node can be set to an intermediate node. It can be understood that in a business link, the intermediate node usually relies on the input of the upstream node and provides output for the downstream node. Therefore, the intermediate node has 2 or more request messages and response messages.

[0084] In an optional embodiment of the present invention, determining the link node position of the current node according to the message data parsing result sequence and the IP information of the target server may also include: when it is determined according to the message data parsing result sequence of the current node that the current node includes a first target request message and a first target response message, setting the link node position of the current node to an initial node; excluding the initial node and the intermediate node from the current node to obtain a tail node.

[0085] The first target request message may be the earliest request message in the message data parsing result sequence, and the first target response message may be the latest response message in the message data parsing result sequence.

[0086] In the embodiment of the present invention, in the process of determining the link node position of the current node according to the message data parsing result sequence, the link node position of the current node corresponding to the earliest request message and the latest response message in the message data parsing result sequence can also be set as the initial node. After determining the initial node and the intermediate node, the link node position of the node other than the initial node and the intermediate node in each current node of the current service can be set as the tail node.

[0087] S260: Generate service link data according to the request message parsing data, the response message parsing data and the link node position of the current node, and generate a service link for the current service according to the service link data.

[0088] In an optional embodiment of the present invention, generating business link data based on the request message parsing data, the response message parsing data and the link node position of the current node may include: adding a parent span identifier to the business link data of the initial node; renaming the global serial number of the request message parsing data of the first target request message of the initial node to a tracking identifier, and adding it to the business link data of the initial node; renaming the request serial number of the request message parsing data of the first target request message of the initial node to a span identifier, and adding it to the business link data of the initial node; calculating the first request processing time based on the start timestamp of the request message parsing data of the first target request message and the end timestamp of the response message parsing data of the first target response message of the initial node, and adding the start timestamp, the end timestamp and the first request processing time to the business link data of the initial node; adding the IP information of the target server, the return status of the response message parsing data of the first target response message and the link node position of the current node to the business link data of the initial node.

[0089] Among them, in the business system, a request may go through multiple services and operations, each operation can be recorded as a span, and each span has a unique identifier, namely the span identifier. The parent span identifier can be used to identify the parent span of the current span. The tracking identifier can be an identifier used to uniquely identify a complete business link. The request serial number can be a number used to uniquely identify a request. The start timestamp can be a field used to record the time when the request starts to be sent. The end timestamp can be a field used to record the time when the response is generated or sent. The time consumed for the first request processing can be the difference between the start timestamp and the end timestamp, indicating the total delay of the entire request processing. The return status can be used to indicate the result of the request processing. Exemplarily, the return status can include but is not limited to successful operation, parameter error or insufficient rights, etc. The embodiment of the present invention does not limit the specific content of the return status.

[0090] In an embodiment of the present invention, when it is determined that the link node position of the current node is the initial node, the business link data of the initial node can be generated according to the request message parsing data and the response message parsing data of the initial node. In the process of generating the business link data of the initial node, the parent span identifier can be added to the business link data of the initial node; the global serial number of the request message parsing data of the initial node is renamed as a tracking identifier, and it is added to the business link data of the initial node; the request serial number of the request message parsing data of the initial node is renamed as a span identifier, and it is added to the business link data of the initial node. Further, the difference between the end timestamp of the response message parsing data of the initial node and the start timestamp of the request message parsing data can be solved as the first processing request time, and the start timestamp, end timestamp and first request processing time are added to the business link data of the initial node; the IP information of the target server, the return status of the response message parsing data of the initial node and the link node position of the current node can also be added to the business link data of the initial node.

[0091] Continuing with the above example, assuming that the current node is the initial node, a field with a parent span identifier parentspanid value of 0 can be added to the business link data of the initial node, and the global serial number seq_no field can be renamed to the traceid field, and the request serial number subseq_no field can be renamed to the spanid field. At the same time, retain the IP information of the target server, the start timestamp starttime field of the current business, the end timestamp endtime field, the return status ret_msg field, and the link node location trace_site field, and calculate the first request processing time elapsed_time field based on the difference between the end timestamp endtime field and the start timestamp starttime field, and add it to the business link data of the initial node. The following is an example of the business link data of a specific initial node:

[0092] timestamp:2024-10-1109:01:00,820

[0093] ip:192.168.10.100

[0094] starttime:2024-10-1109:01:00,110

[0095] endtime:2024-10-1109:01:00,820

[0096] traceid:G2024101109010011023333435

[0097] parentspanid:0

[0098] spanid:T2024101109010011023333435

[0099] ret_msg: Processing successful

[0100] trace_site: initial node

[0101] elapsed_time:710.

[0102] In an optional embodiment of the present invention, the generating of the business link data according to the request message parsing data, the response message parsing data and the link node position of the current node may also include: arranging and combining the intermediate nodes according to the number of the intermediate nodes to obtain an intermediate node link; renaming the request serial number of the request message parsing data of the second target request message of the starting node of the intermediate node link to a parent span identifier, and adding it to the business link data of the intermediate node; renaming the global serial number of the request message parsing data of the second target request message of the starting node of the intermediate node link to a tracking identifier, and adding it to the business link data of the intermediate node; renaming the back end of each of the intermediate node links to a tracking identifier. The request serial number of the request message parsing data of the third target request message of the subsequent node is renamed as the span identifier and added to the business link data of the intermediate node; the second request processing time is calculated according to the start timestamp of the request message parsing data of the third target request message of the subsequent node of each intermediate node link and the end timestamp of the response message parsing data of the third target response message, and the start timestamp, the end timestamp and the second request processing time are added to the corresponding business link data of the intermediate node; the IP information of the target server, the return status of the response message parsing data of the third target response message and the link node position of the current node are added to the business link data of the intermediate node.

[0103] Among them, the second target request message is a request message of the starting node of each intermediate node link. The third target request message can be a request message of the subsequent node of each intermediate node link except the starting node. The third target response message can be a response message of the subsequent node of each intermediate node link except the starting node. The second request processing time can be the difference between the end timestamp of the response message parsing data of the subsequent node of each intermediate node link and the start timestamp of the request message parsing data.

[0104] In the embodiment of the present invention, when it is determined that the link node position of the current node is an intermediate node, the number of intermediate nodes included in the current service can be determined first. After the number of intermediate nodes is determined, the intermediate nodes can be arranged and combined according to the service logic of the current service to obtain an intermediate node link. It can be understood that the intermediate node link includes at least one link.

[0105] After determining each intermediate node link, the starting node of each intermediate node link can be determined, and the request serial number of the request message parsing data of the starting node is renamed as the parent span identifier, the global serial number is renamed as the tracking identifier, and the parent span identifier and the tracking identifier are added to the link data of the intermediate node. Further, the difference between the end timestamp of the response message parsing data of the subsequent nodes other than the starting node and the start timestamp of the request message parsing data of each intermediate node link can be calculated as the second request processing time, and the second request processing time, end timestamp and start timestamp are added to the link data of the intermediate node. The IP information of the target server, the return status of the response message parsing data of the subsequent node, and the link node position of the current node can also be added to the service link data of the intermediate node.

[0106] In a specific example, assuming that the number of intermediate nodes with the same global serial number and IP information of the target server is 4, 3 intermediate links can be generated according to the intermediate nodes. In the process of generating intermediate links, the request message parsing data and the response message parsing data can first be sorted from small to large according to the request serial number of the current node.

[0107] Business link data of the first intermediate node: take the request serial number subseq_no field in the request message parsing data with the time at the first position and rename it to the parentspanid field, and rename the global serial number seq_no field to the traceid field. Take the request serial number subseq_no field in the request message parsing data with the time at the second position and rename it to the spanid field, and retain the start timestamp starttime field and the IP information of the target server in the request message parsing data. Furthermore, the end timestamp endtime field, return status ret_msg field, and link node location trace_site field of the response message parsing data with the same value as the request serial number subseq_no field in the request message parsing data with the time at the second position can be taken. The difference between the end timestamp endtime field and the start timestamp starttime field can also be calculated to calculate the second request processing time elapsed_time field, and the above data is added to the business link data of the first intermediate node. As described below, it is an example of a specific business link data of the first intermediate node:

[0108] timestamp:2024-10-1109:01:00,800

[0109] ip:192.168.10.101

[0110] starttime:2024-10-1109:01:00,210

[0111] endtime:2024-10-1109:01:00,800

[0112] traceid:G2024101109010011023333435

[0113] parentspanid:T2024101109010011023333435

[0114] spanid:T2024101109010011023333436

[0115] ret_msg: Processing successful

[0116] trace_site: intermediate node

[0117] elapsed_time:590.

[0118] Business link data of the second intermediate node: take the request serial number subseq_no field in the request message parsing data with the time at the first place and rename it to the parentspanid field, and rename the global serial number seq_no field to the traceid field. Take the request serial number subseq_no field in the request message parsing data with the time at the third place and rename it to the spanid field, and retain the start timestamp starttime field and the IP information of the target server in the request message parsing data. Furthermore, the end timestamp endtime field, return status ret_msg field, and link node location trace_site field of the response message parsing data with the same value as the request serial number subseq_no field in the request message parsing data with the time at the third place can be taken. The difference between the end timestamp endtime field and the start timestamp starttime field can also be calculated to calculate the second request processing time elapsed_time field, and the above data can be added to the business link data of the second intermediate node. As described below, it is an example of a specific business link data of the second intermediate node:

[0119] timestamp:2024-10-1109:01:00,770

[0120] ip:192.168.10.101

[0121] starttime:2024-10-1109:01:00,230

[0122] endtime:2024-10-1109:01:00,770

[0123] traceid:G2024101109010011023333435

[0124] parentspanid:T2024101109010011023333435

[0125] spanid:T2024101109010011023333437

[0126] ret_msg: Processing successful

[0127] trace_site: intermediate node

[0128] elapsed_time:540.

[0129] Business link data of the third intermediate node: take the request serial number subseq_no field in the request message parsing data with the time at the first position and rename it to the parentspanid field, and rename the global serial number seq_no field to the traceid field. Take the request serial number subseq_no field in the request message parsing data with the time at the fourth position and rename it to the spanid field, and retain the start timestamp starttime field and the IP information of the target server in the request message parsing data. Furthermore, the end timestamp endtime field, return status ret_msg field, and link node location trace_site field of the response message parsing data with the same value as the request serial number subseq_no field in the request message parsing data with the time at the fourth position can be taken. The difference between the end timestamp endtime field and the start timestamp starttime field can also be calculated to calculate the second request processing time elapsed_time field, and the above data can be added to the business link data of the third intermediate node. As described below, it is an example of a specific business link data of the third intermediate node:

[0130] timestamp:2024-10-1109:01:00,760

[0131] ip:192.168.10.101

[0132] starttime:2024-10-1109:01:00,240

[0133] endtime:2024-10-1109:01:00,760

[0134] traceid:G2024101109010011023333435

[0135] parentspanid:T2024101109010011023333435

[0136] spanid:T2024101109010011023333438

[0137] ret_msg: Processing successful

[0138] trace_site: intermediate node

[0139] elapsed_time:520

[0140] In an optional embodiment of the present invention, the generating of the service link data according to the request message parsing data, the response message parsing data and the link node position of the current node may also include: renaming the request serial number of the request message parsing data of the fourth target request message of the tail node to a parent span identifier, and adding it to the service link data of the tail node; renaming the global serial number of the request message parsing data of the fourth target request message of the tail node to a tracking identifier, and adding it to the service link data of the tail node; renaming the response message parsing data of the fourth target response message of the tail node to a tracking identifier. The response serial number is renamed as the span identifier and added to the business link data of the tail node; the third request processing time is calculated according to the start timestamp of the request message parsing data of the fourth target request message and the end timestamp of the response message parsing data of the fourth target response message, and the start timestamp, the end timestamp and the third request processing time are added to the business link data of the tail node; the IP information of the target server, the return status of the response message parsing data of the fourth target response message and the link node position of the current node are added to the business link data of the tail node.

[0141] The fourth target request message may be a request message of the tail node. The fourth target response message may be a response message of the tail node. The third request processing time may be the difference between the end timestamp of the response message parsing data of the tail node and the start timestamp of the request message parsing data.

[0142] In an embodiment of the present invention, in the process of generating the link data of the tail node, the request serial number of the request message parsing data of the tail node can be renamed as the parent span identifier, the global serial number can be renamed as the tracking identifier, and the parent span identifier and the tracking identifier can be added to the link data of the tail node; the response serial number of the response message parsing data of the tail node can also be renamed as the span identifier, and added to the link data of the tail node. Further, the difference between the end timestamp of the response message parsing data of the tail node and the start timestamp of the request message parsing data can be calculated as the third request processing time, and the third request processing time, start timestamp and end timestamp are added to the link data of the tail node. At the same time, the IP information of the target server, the return status of the response message parsing data of the tail node and the link node position of the current node can also be added to the link data of the tail node.

[0143] In a specific example, assuming that the current node is the tail node, the request serial number subseq_no field in the request message parsing data of the tail node can be renamed as the parentspanid field, and the global serial number seq_no field can be renamed as the traceid field, while retaining the start timestamp starttime field and the IP information of the target server in the request message parsing data. The response serial number ret_no field in the response message parsing data of the tail node is taken and renamed as the spanid field, while retaining the end timestamp endtime field, the return status ret_msg field and the link node location trace_site field in the response message parsing data. The third request processing time elapsed_time field can also be calculated based on the difference between the end timestamp endtime field and the start timestamp starttime field, and the above data is added to the business link data of the tail node. As described below, this is an example of a specific business link data of a tail node:

[0144] timestamp:2024-10-1109:01:00,780

[0145] ip:192.168.10.102

[0146] starttime:2024-10-1109:01:00,250

[0147] endtime:2024-10-1109:01:00,780

[0148] traceid:G2024101109010011023333435

[0149] parentspanid:T2024101109010011023333436

[0150] spanid:N2024101109010011023333435

[0151] ret_msg: Processing successful

[0152] trace_site: tail node

[0153] elapsed_time:470.

[0154] Figure 3 is a schematic diagram of a service link processing system provided by Embodiment 2 of the present invention. In a specific example, Figure 3As shown, the business link processing system may include a log data acquisition module 310, an unstructured data extraction module 320, a business link data processing module 330, and a business link data display module 340. Specifically, the log data acquisition module 310 may be used to collect logs on the target server and carry host information, such as the host's IP information, host name, and the time point of collection. The unstructured data extraction module 320 may be used to perform field extraction on the string data, i.e., the log data collected by the log data acquisition module 310, through regular matching, and support field renaming. The business link data processing module 330 may be used to perform real-time streaming processing on the log data processed by the unstructured data extraction module 320 through a distributed stream processing framework, support data processing of program language scripts, and support the addition and renaming of fields. At the same time, the business link data processing module 330 may also be used for the merge processing of request messages and response messages and the addition of business link data. The business link data display module 340 may be used to perform parent-child concatenation and visual display of the business link data output by the business link data processing module 330, as well as traceid retrieval.

[0155] The embodiment of the present invention obtains the log data in the current business including the information such as the request message, the response message and the IP information of the target server requested to interact by the current node, and parses the log data in the current business to obtain the request message parsing data and the response message parsing data; further, when it can be determined that the global serial number of the request message parsing data and the response message parsing data of the current node is the same, the request message parsing data and the response message parsing data of the current node are time-sorted to obtain the message data parsing result sequence, so that the link node position of the current node can be determined according to the message data parsing result sequence and the IP information of the target server. Then, the business link data can be generated according to the request message parsing data, the response message parsing data and the link node position of the current node, and the business link of the current business can be generated according to the business link data, so as to solve the problems of resource waste and poor system stability existing in the existing business link generation method, simplify the business link generation process, effectively reduce the occupation of server resources, reduce the risk of program failure, and ensure the efficient and stable operation of the business system.

[0156] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information are in compliance with the relevant laws and regulations and do not violate public order and good morals.

[0157] It should be noted that any arrangement and combination of the technical features in the above embodiments also falls within the protection scope of the present invention.

[0158] Embodiment 3

[0159] Figure 4 is a schematic diagram of a service link processing device provided in Embodiment 3 of the present invention, such as Figure 4 As shown, the device includes: a log data acquisition module 410, a log data parsing module 420, a link node location determination module 430 and a service link generation module 440, wherein:

[0160] The log data acquisition module 410 is used to acquire the log data of the current business collected from the current node; the log data includes the request message, the response message and the IP information of the target server with which the current node requests to interact.

[0161] The log data parsing module 420 is used to parse the log data in the current business to obtain request message parsing data and response message parsing data.

[0162] The link node position determination module 430 is used to determine the link node position of the current node according to the request message parsing data, the response message parsing data and the IP information of the target server.

[0163] The service link generation module 440 is used to generate service link data according to the request message parsing data, the response message parsing data and the link node position of the current node, and generate the service link of the current service according to the service link data.

[0164] The embodiment of the present invention obtains log data in the current business collected from the current node, including information such as request messages, response messages and IP information of the target server requested for interaction by the current node, and parses the log data in the current business to obtain request message parsing data and response message parsing data; further, the link node position of the current node can be determined according to the request message parsing data, the response message parsing data and the IP information of the target server, so that business link data can be generated according to the request message parsing data, the response message parsing data and the link node position of the current node, and the business link of the current business is generated according to the business link data, which solves the problems of resource waste and poor system stability in the existing business link generation method, can simplify the business link generation process, effectively reduce the occupation of server resources, and reduce the risk of program failures, thereby ensuring the efficient and stable operation of the business system.

[0165] Optionally, the request message parsing data and the response message parsing data include a global serial number; the link node position determination module 430 is specifically used to: when it is determined that the global serial numbers of the request message parsing data and the response message parsing data of the current node are the same, time-sort the request message parsing data and the response message parsing data of the current node to obtain a message data parsing result sequence; determine the link node position of the current node based on the message data parsing result sequence and the IP information of the target server.

[0166] Optionally, the link node position determination module 430 is also used to: when it is determined that the IP information of the target server requested to interact by the current node is one, determine the number of request messages and the number of response messages included in the current node according to the message data parsing result sequence of the current node; when it is determined that the number of request messages is greater than or equal to the set number, and when it is determined that the number of response messages is greater than or equal to the set number, determine that the current node is an intermediate node.

[0167] Optionally, the link node position determination module 430 is also used to: when it is determined according to the message data parsing result sequence of the current node that the current node includes a first target request message and a first target response message, set the link node position of the current node to the initial node; exclude the initial node and the intermediate node from the current node to obtain the tail node.

[0168] Optionally, the request message parsing data also includes a request serial number and a start timestamp; the response message parsing data also includes an end timestamp, a request serial number and a return status; the business link generation module 440 is specifically used to: add a parent span identifier to the business link data of the initial node; rename the global serial number of the request message parsing data of the first target request message of the initial node to a tracking identifier, and add it to the business link data of the initial node; rename the request serial number of the request message parsing data of the first target request message of the initial node to a span identifier, and add it to the business link data of the initial node; calculate the first request processing time according to the start timestamp of the request message parsing data of the first target request message and the end timestamp of the response message parsing data of the first target response message of the initial node, and add the start timestamp, the end timestamp and the first request processing time to the business link data of the initial node; add the IP information of the target server, the return status of the response message parsing data of the first target response message and the link node position of the current node to the business link data of the initial node.

[0169] Optionally, the request message parsing data also includes a request serial number and a start timestamp; the response message parsing data also includes an end timestamp, a request serial number and a return status; the business link generation module 440 is also used to: arrange and combine the intermediate nodes according to the number of the intermediate nodes to obtain an intermediate node link; rename the request serial number of the request message parsing data of the second target request message of the starting node of the intermediate node link to a parent span identifier, and add it to the business link data of the intermediate node; rename the global serial number of the request message parsing data of the second target request message of the starting node of the intermediate node link to a tracking identifier, and add it to the business link data of the intermediate node; rename each of the intermediate node links to a tracking identifier. The request serial number of the request message parsing data of the third target request message of the subsequent node of the path is renamed as the span identifier and added to the business link data of the intermediate node; the second request processing time is calculated according to the start timestamp of the request message parsing data of the third target request message of the subsequent node of each intermediate node link and the end timestamp of the response message parsing data of the third target response message, and the start timestamp, the end timestamp and the second request processing time are added to the corresponding business link data of the intermediate node; the IP information of the target server, the return status of the response message parsing data of the third target response message and the link node position of the current node are added to the business link data of the intermediate node.

[0170] Optionally, the request message parsing data also includes a request serial number and a start timestamp; the response message parsing data also includes an end timestamp, a request serial number and a return status; the business link generation module 440 is also used to: rename the request serial number of the request message parsing data of the fourth target request message of the tail node to a parent span identifier, and add it to the business link data of the tail node; rename the global serial number of the request message parsing data of the fourth target request message of the tail node to a tracking identifier, and add it to the business link data of the tail node; rename the response message parsing data of the fourth target response message of the tail node to a tracking identifier. The response serial number of the data is renamed as the span identifier and added to the business link data of the tail node; the third request processing time is calculated based on the start timestamp of the request message parsing data of the fourth target request message and the end timestamp of the response message parsing data of the fourth target response message, and the start timestamp, the end timestamp and the third request processing time are added to the business link data of the tail node; the IP information of the target server, the return status of the response message parsing data of the fourth target response message and the link node position of the current node are added to the business link data of the tail node.

[0171] The above service link processing device can execute the service link processing method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not described in detail in this embodiment, please refer to the service link processing method provided by any embodiment of the present invention.

[0172] Since the service link processing device introduced above is a device that can execute the service link processing method in the embodiment of the present invention, based on the service link processing method introduced in the embodiment of the present invention, the technical personnel in the field can understand the specific implementation of the service link processing device of the present embodiment and its various variations, so how the service link processing device implements the service link processing method in the embodiment of the present invention is not described in detail here. As long as the technical personnel in the field implement the device used by the service link processing method in the embodiment of the present invention, it belongs to the scope of protection of this application.

[0173] Embodiment 4

[0174] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0175] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0176] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0177] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as a service link processing method.

[0178] In some embodiments, the service link processing method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the service link processing method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the service link processing method in any other appropriate manner (e.g., by means of firmware).

[0179] Optionally, the service link processing method may include: obtaining log data in the current service collected for the current node; the log data includes a request message, a response message and the IP information of the target server with which the current node requests to interact; parsing the log data in the current service to obtain request message parsing data and response message parsing data; determining the link node position of the current node based on the request message parsing data, the response message parsing data and the IP information of the target server; generating service link data based on the request message parsing data, the response message parsing data and the link node position of the current node, and generating the service link of the current service based on the service link data.

[0180] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0181] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0182] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0183] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0184] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0185] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0186] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0187] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A service link processing method, characterized in that: include: Acquire log data in the current business collected from the current node; the log data includes request messages, response messages and Internet Protocol IP information of the target server with which the current node requests to interact; Parsing the log data in the current business to obtain request message parsing data and response message parsing data; Determine the link node position of the current node according to the request message parsing data, the response message parsing data and the IP information of the target server; The service link data is generated according to the request message parsing data, the response message parsing data and the link node position of the current node, and the service link of the current service is generated according to the service link data.

2. The method according to claim 1, characterized in that The request message parsing data and the response message parsing data include a global serial number; and determining the link node position of the current node according to the request message parsing data, the response message parsing data and the IP information of the target server includes: When it is determined that the global serial numbers of the request message parsing data and the response message parsing data of the current node are the same, time-sorting the request message parsing data and the response message parsing data of the current node to obtain a message data parsing result sequence; The link node position of the current node is determined according to the message data parsing result sequence and the IP information of the target server.

3. The method according to claim 2, characterized in that Determining the link node position of the current node according to the message data parsing result sequence and the IP information of the target server includes: In the case where it is determined that the IP information of the target server that the current node requests to interact with is one, determining the number of request messages and the number of response messages included in the current node according to the message data parsing result sequence of the current node; When it is determined that the number of request messages is greater than or equal to the set number, and when it is determined that the number of response messages is greater than or equal to the set number, it is determined that the current node is an intermediate node.

4. The method according to claim 3, characterized in that Also includes: When it is determined according to the message data parsing result sequence of the current node that the current node includes a first target request message and a first target response message, setting the link node position of the current node to an initial node; The initial node and the intermediate node are excluded from the current node to obtain a tail node.

5. The method according to claim 4, characterized in that The request message parsing data also includes a request serial number and a start timestamp; the response message parsing data also includes an end timestamp, a request serial number and a return status; The generating the service link data according to the request message parsing data, the response message parsing data and the link node position of the current node includes: adding a parent span identifier to the service link data of the initial node; renaming the global serial number of the request message parsing data of the first target request message of the initial node into a tracking identifier, and adding it to the service link data of the initial node; Rename the request serial number of the request message parsing data of the first target request message of the initial node into a span identifier, and add it to the service link data of the initial node; Calculate the first request processing time according to the start timestamp of the request message parsing data of the first target request message and the end timestamp of the response message parsing data of the first target response message of the initial node, and add the start timestamp, the end timestamp and the first request processing time to the service link data of the initial node; The IP information of the target server, the return status of the response message parsing data of the first target response message, and the link node position of the current node are added to the business link data of the initial node.

6. The method according to claim 3, characterized in that The request message parsing data also includes a request serial number and a start timestamp; the response message parsing data also includes an end timestamp, a request serial number and a return status; The generating of the service link data according to the request message parsing data, the response message parsing data and the link node position of the current node also includes: Arrange and combine the intermediate nodes according to the number of the intermediate nodes to obtain an intermediate node link; Rename the request serial number of the start node of the request message parsing data of the second target request message of the intermediate node link to a parent span identifier, and add it to the service link data of the intermediate node; Rename the global serial number of the request message parsing data of the second target request message of the starting node of the intermediate node link to a tracking identifier, and add it to the service link data of the intermediate node; Rename the request serial number of the request message parsing data of the third target request message of the subsequent node of each intermediate node link into a span identifier, and add it to the service link data of the intermediate node; Calculate the second request processing time according to the start timestamp of the request message parsing data of the third target request message of the subsequent node of each intermediate node link and the end timestamp of the response message parsing data of the third target response message, and add the start timestamp, the end timestamp and the second request processing time to the service link data of the corresponding intermediate node; The IP information of the target server, the return status of the response message parsing data of the third target response message, and the link node position of the current node are added to the service link data of the intermediate node.

7. The method according to claim 4, characterized in that The request message parsing data also includes a request serial number and a start timestamp; the response message parsing data also includes an end timestamp, a request serial number and a return status; The generating of the service link data according to the request message parsing data, the response message parsing data and the link node position of the current node also includes: renaming the request serial number of the request message parsing data of the fourth target request message of the tail node as a parent span identifier, and adding it to the service link data of the tail node; renaming the global serial number of the request message parsing data of the fourth target request message of the tail node into a tracking identifier, and adding it to the service link data of the tail node; renaming the response serial number of the response message parsing data of the fourth target response message of the tail node into a span identifier, and adding it to the service link data of the tail node; Calculate the third request processing time according to the start timestamp of the request message parsing data of the fourth target request message and the end timestamp of the response message parsing data of the fourth target response message, and add the start timestamp, the end timestamp and the third request processing time to the service link data of the tail node; The IP information of the target server, the return status of the response message parsing data of the fourth target response message, and the link node position of the current node are added to the service link data of the tail node.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the service link processing method described in any one of claims 1-7.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the service link processing method described in any one of claims 1-7 when executed.

10. A computer program product comprising a computer program / instructions, wherein: When the computer program / instruction is executed by a processor, the service link processing method described in any one of claims 1 to 7 is implemented.