Nothing Special   »   [go: up one dir, main page]

CN115629940A - Micro-service full-link tracking method, device, system and medium - Google Patents

Micro-service full-link tracking method, device, system and medium Download PDF

Info

Publication number
CN115629940A
CN115629940A CN202211364844.5A CN202211364844A CN115629940A CN 115629940 A CN115629940 A CN 115629940A CN 202211364844 A CN202211364844 A CN 202211364844A CN 115629940 A CN115629940 A CN 115629940A
Authority
CN
China
Prior art keywords
transaction
association identifier
service
log file
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211364844.5A
Other languages
Chinese (zh)
Inventor
顾呈恩
陈仁伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202211364844.5A priority Critical patent/CN115629940A/en
Publication of CN115629940A publication Critical patent/CN115629940A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/323Visualisation of programs or trace data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method, a device, a system and a medium for tracking a micro-service full link, wherein the method comprises the following steps: when detecting that the transaction is started, generating an association identifier of the transaction; calling a service corresponding to the transaction in the distributed system, and adding the associated identifier to a log file of service calling; aggregating all log files of the transaction and storing the aggregated log files in a preset database; and responding to the transaction tracking instruction, inquiring a target log file in a preset database according to the association identifier, and displaying the full link node information of the target transaction. By generating the association identifier when the transaction is started, transmitting the association identifier when the service is called and recording the association identifier in the log file, the calling link in the transaction implementation process can be inquired and displayed according to the association identifier, the data traceability of the micro-service transaction is effectively improved, and the positioning efficiency of production problems is favorably improved.

Description

Micro-service full-link tracking method, device, system and medium
Technical Field
The invention relates to the technical field of computers, in particular to a method, a device, a system and a medium for tracking full links of micro-service.
Background
The microservice is a method for decomposing a complex single software system into smaller and more manageable parts, a single application program is divided into a group of small services, the services are coordinated and matched, the flexibility is realized at the cost of complexity, and one microservice transaction needs to track a plurality of services, physical machines and different data storages.
Financial institutions such as banks and the like have various applications and different technical architectures, and when a micro-service architecture is adopted to provide business operations for users, if production problems occur, in the conventional method, workers generally inquire key data of a database according to user identity identifiers and check one by one according to experience, so that the positioning efficiency of the production problems is low.
Disclosure of Invention
In view of the above-mentioned deficiencies of the prior art, an object of the present invention is to provide a method, an apparatus, a system and a medium for tracking a full link of a microservice, which can be applied to financial technologies or other related fields, and aims to improve data traceability of microservice transactions and improve positioning efficiency of production problems.
The technical scheme of the invention is as follows:
a method of microservice full-link tracing, the method comprising:
when detecting that the transaction is started, generating an association identifier of the transaction;
calling a service corresponding to the transaction in a distributed system, and adding the association identifier to a log file called by the service;
aggregating all log files of the transaction and storing the aggregated log files in a preset database;
and responding to the transaction tracking instruction, inquiring a target log file in the preset database according to the association identifier and displaying the full link node information of the target transaction.
In an embodiment, the generating an association identifier of the transaction when detecting that the transaction is started specifically includes:
when the starting of the transaction is detected, a unique character string is randomly generated to serve as the association identification of the transaction.
In one embodiment, the invoking a service corresponding to the transaction in the distributed system and adding the association identifier to a log file of the service invocation includes:
validating a combination of operations contained in the transaction;
calling corresponding services in the distributed system according to the operation combination;
and adding the association identifier to a log file of the service call.
In one embodiment, before the adding the association identifier to the log file of the service call, the method further comprises:
detecting a request head of a service call request, confirming whether the request head has an association identifier or not, if so, acquiring the association identifier, otherwise, generating the association identifier of the transaction.
In one embodiment, the adding the association identifier to the log file of the service call includes:
and injecting the association identifier into a mapping diagnosis context of a service container so that the association identifier is added into a log statement of the service call.
In one embodiment, the adding the association identifier to the log file of the service call further includes:
and when the child thread is created or reused, the association identification in the parent thread is transferred to the child thread.
In one embodiment, the querying, in response to the transaction tracking instruction, the target log file in the preset database according to the association identifier and displaying the full link node information of the target transaction includes:
analyzing the received transaction tracking instruction and confirming the target transaction;
inquiring in the preset database according to the association identifier of the target transaction to obtain a target log file;
and displaying the full link node information of the target transaction according to the calling data in the target log file.
A microservice full-link tracking device, comprising:
the generation module is used for generating the association identifier of the transaction when the initiation of the transaction is detected;
the adding module is used for calling the service corresponding to the transaction in the distributed system and adding the association identifier to a log file called by the service;
the aggregation storage module is used for aggregating all log files of the transaction and storing the aggregated log files in a preset database;
and the query display module is used for responding to the transaction tracking instruction, querying a target log file in the preset database according to the association identifier and displaying the full link node information of the target transaction.
A microservice full-link tracking system, the system comprising at least one processor; and (c) a second step of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the above-described method of microservice full-link tracing.
A non-transitory computer-readable storage medium storing computer-executable instructions that, when executed by one or more processors, cause the one or more processors to perform the above-described method of microservice full-link tracking.
Has the beneficial effects that: compared with the prior art, the embodiment of the invention generates the association identifier when the transaction is started, transmits the association identifier when the service is called and records the association identifier in the log file, so that the calling link in the transaction implementation process can be inquired and displayed according to the association identifier, the data traceability of the microservice transaction is effectively improved, and the positioning efficiency of production problems is favorably improved.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
FIG. 1 is a flowchart of a method for microservice full-link tracing according to an embodiment of the present invention;
fig. 2 is a flowchart of step S200 in the method for tracking a microservice full link according to the embodiment of the present invention;
fig. 3 is another flowchart of step S200 in the method for tracking a microservice full link according to the embodiment of the present invention;
fig. 4 is a flowchart of step S400 in the method for tracking a microservice full link according to the embodiment of the present invention;
FIG. 5 is a functional block diagram of a microservice full-link tracking apparatus according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware structure of a microservice full-link tracking system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is described in further detail below. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for tracking a microservice full link according to an embodiment of the present invention. The method for tracking the full link of the micro service provided by the embodiment is applied to a system comprising a terminal device, a network and a server, wherein the network is a medium for directly providing a communication link between the terminal device and the server, and can comprise various connection types, such as a wired connection, a wireless communication link or an optical fiber cable; the operating system on the terminal device may include an operating system (iOS system) of a handheld device, an android system, or another operating system, and the terminal device is connected to a server through a network to perform interaction, so as to receive or send data, and may be specifically various electronic devices that have a display screen and support web browsing, including but not limited to a smart phone, a tablet computer, a portable computer, a desktop server, and the like. As shown in fig. 1, the method specifically includes the following steps:
s100, when the starting of the transaction is detected, generating the association identification of the transaction.
In this embodiment, when the application is implemented based on the microservice architecture to provide corresponding services to users, different operations are implemented specifically through a distributed transaction, the transaction is a work unit formed by a group of operations, the distributed transaction is a set of service operations, completion of any transaction in the microservice system of the distributed architecture needs to involve multiple services to be completed together, the set formed by the group of service operations is a distributed transaction, in order to implement full-link tracking of different transactions, when it is detected that a transaction is started, an association identifier of the transaction is generated to serve as a basis for tracking the transaction, and efficiency of subsequent data query and invocation is improved.
In one embodiment, step S100 specifically includes:
when the starting of the transaction is detected, a unique character string is randomly generated to serve as the association identification of the transaction.
In this embodiment, when the association identifier is generated, a unique character string is specifically randomly generated for different transactions, and the unique character string is used as the association identifier, that is, the association ID, of each transaction, so that each transaction has randomly generated and unique identification data when being started, and the transaction can be subjected to operation recording through the association identifier in the completion process, thereby providing a data basis for full link tracking.
S200, calling a service corresponding to the transaction in a distributed system, and adding the association identifier to a log file called by the service.
In this embodiment, when service invocation is performed among distributed systems to complete a current transaction, an association identifier of the current transaction is added to a log file, so that propagation of the association identifier during service invocation is realized, and the log file is a recording file or a file set for recording system operation events and can be divided into an event log and a message log, which have important functions of processing historical data, tracking diagnosis problems, understanding system activities and the like.
In an embodiment, please refer to fig. 2, which is a flowchart illustrating a step S200 of a method for tracking a microservice full link according to an embodiment of the present invention, where, as shown in fig. 2, the step S200 includes:
s201, confirming an operation combination contained in the transaction;
s202, calling corresponding services in the distributed system according to the operation combination;
s203, adding the association identifier to a log file of the service call.
In this embodiment, since it is necessary to call corresponding services in different systems to complete a transaction in the micro service architecture, when service call is performed, it is first determined that an operation combination included in a current transaction is completed, where the operation combination includes a plurality of service operations, a cross-system service call is performed in the distributed system based on a system in which the plurality of service operations are deployed, each service corresponding to the operation combination is called, and when service call occurs, the association identifier is added to a log file generated when service call occurs, so as to record execution conditions of each service call, including time consumption conditions, blocking points, abnormal conditions, and the like of each service.
In an embodiment, please refer to fig. 3, which is another flowchart of step S200 in the method for tracking a microservice full link according to the embodiment of the present invention, as shown in fig. 3, before step S203, the method further includes:
s204, detecting a request head of the service call request, confirming whether the request head has the association identifier or not, if so, acquiring the association identifier, otherwise, generating the association identifier of the transaction.
In this embodiment, when service invocation occurs, that is, when a service invocation request is received, a filter is used to check a request header of the service invocation request, determine whether the request header carries an association identifier of a current transaction, and if the request header carries the association identifier, the request header is directly taken, and if the request header does not carry the association identifier of the current transaction, the association identifier of the current transaction is regenerated, so that propagation of the association identifier in the service invocation process is realized.
In one embodiment, step S203 includes:
and injecting the association identifier into a mapping diagnosis context of a service container so that the association identifier is added into a log statement of the service call.
In this embodiment, when the addition of the association identifier in the service invocation process is implemented, specifically, the association identifier is injected into a mapping Diagnostic Context of the service container, that is, an MDC (Mapped Diagnostic Context), where the MDC is a function that is convenient for logging under a multithreading condition, and the association identifier is injected into the MDC, so that it can be ensured that the association identifier is added to any log statement of the service invocation, thereby implementing accurate association identifier addition propagation.
In one embodiment, step S203 further includes:
and when the child thread is created or reused, the association identification in the parent thread is transferred to the child thread.
In this embodiment, if there is a multi-thread call in the system, in order to ensure that the thread context of the parent thread can be correctly propagated to the child thread, when the child thread is created or multiplexed, the association identifier of the parent thread is transferred to the child thread, and it is ensured that one association identifier is penetrated through the whole transaction.
S300, aggregating all log files of the transaction and storing the aggregated log files in a preset database.
In this embodiment, since the same transaction needs to call multiple services in different systems, multiple log files are generated across the systems, and for records of the same association identifier left on log platforms of the systems, that is, log files of the same transaction in different systems, all log files of the same transaction are aggregated by the open source tool logstack, and the aggregated log files are stored in a preset database. Furthermore, aiming at a plurality of aggregated log files obtained by aggregating a plurality of transactions, an index is established and stored through the associated identification of each transaction, so that the call links of different transactions can be efficiently and conveniently searched through the associated identification.
S400, responding to the transaction tracking instruction, inquiring a target log file in the preset database according to the association identifier, and displaying the full link node information of the target transaction.
In this embodiment, when a user needs to perform link tracking on a certain transaction, a transaction tracking instruction is input, the server responds to the transaction tracking instruction, a search query of a log file is performed in a preset database according to an association identifier corresponding to the instruction to obtain a target log file, full link node information of the target transaction is displayed on a display interface based on the target log file, and the user is helped to intuitively and efficiently know a call link of a system, time consumption, a blocking point, an abnormal condition and the like of the link at each node, so that not only is efficient positioning when a production problem occurs facilitated, but also capacity expansion or capacity reduction processing can be flexibly performed on each system according to the link condition, and the balance capacity of the system is improved as much as possible.
In an embodiment, please refer to fig. 4, which is a flowchart illustrating a step S400 of a method for tracking a full link of a microservice according to an embodiment of the present invention, where as shown in fig. 4, the step S400 includes:
s401, analyzing the received transaction tracking command, and confirming a target transaction;
s402, inquiring in the preset database according to the association identifier of the target transaction to obtain a target log file;
and S403, displaying the full link node information of the target transaction according to the calling data in the target log file.
In this embodiment, a received transaction tracking instruction is responded, a target transaction carried in the instruction is obtained through analysis, for example, a user may input the transaction tracking instruction by inputting a name or a serial number of the target transaction, and then obtain a previously generated association identifier of the target transaction, and query in an index of a preset database based on the association identifier to obtain a corresponding target log file, where the target log file records full-link information of the target transaction when performing inter-system service invocation, and visually display full-link node information of the target transaction according to invocation data recorded in the target log file, so that the inter-system service invocation is visualized, thereby effectively reducing difficulty in troubleshooting a production problem, and improving troubleshooting efficiency.
Another embodiment of the present invention provides a microservice full-link tracking apparatus, as shown in fig. 5, an apparatus 1 includes:
a generating module 11, configured to generate an association identifier of a transaction when it is detected that the transaction is started;
an adding module 12, configured to invoke a service corresponding to the transaction in a distributed system, and add the association identifier to a log file of the service invocation;
the aggregation storage module 13 is configured to aggregate all log files of the transaction and store the aggregated log files in a preset database;
and the query and display module 14 is configured to, in response to the transaction tracking instruction, query the target log file in the preset database according to the association identifier and display the full link node information of the target transaction.
The modules referred to in the present invention refer to a series of computer program instruction segments capable of performing specific functions, and are more suitable for describing the execution process of the microservice full-link tracking than the program.
In an embodiment, the generating module 11 is specifically configured to:
when the starting of the transaction is detected, a unique character string is randomly generated to serve as the association identification of the transaction.
In one embodiment, the adding module 12 includes:
an operation confirmation unit configured to confirm an operation combination included in the transaction;
the service calling unit is used for calling the corresponding service in the distributed system according to the operation combination;
and the adding unit is used for adding the association identifier to a log file of the service call.
In one embodiment, the adding module 12 further includes:
and the detection acquisition unit is used for detecting a request head of the service call request, confirming whether the request head has the association identifier or not, acquiring the association identifier if the request head has the association identifier, and otherwise, generating the association identifier of the transaction.
In an embodiment, the adding unit is specifically configured to:
and injecting the association identifier into a mapping diagnosis context of a service container so that the association identifier is added into a log statement of the service call.
In an embodiment, the adding unit is further specifically configured to:
and when the child thread is created or reused, the association identification in the parent thread is transferred to the child thread.
In one embodiment, the query presentation module 14 includes:
the analysis unit is used for analyzing the received transaction tracking instruction and confirming the target transaction;
the query unit is used for querying the preset database according to the association identifier of the target transaction to obtain a target log file;
and the display unit is used for displaying the full link node information of the target transaction according to the calling data in the target log file.
Another embodiment of the present invention provides a micro-service full link tracking system, as shown in fig. 6, the system 10 includes:
one or more processors 110 and a memory 120, where one processor 110 is illustrated in fig. 6, the processor 110 and the memory 120 may be connected by a bus or other means, and fig. 6 illustrates a connection by a bus as an example.
Processor 110 is operative to implement various control logic for system 10 and may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), a single chip microprocessor, an ARM (Acorn RISC Machine) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. Also, the processor 110 may be any conventional processor, microprocessor, or state machine. Processor 110 may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and/or any other such configuration.
The memory 120 is a non-volatile computer readable storage medium, and can be used for storing non-volatile software programs, non-volatile computer executable programs, and modules, such as program instructions corresponding to the micro-service full link tracking method in the embodiment of the present invention. The processor 110 executes various functional applications and data processing of the system 10 by executing the non-volatile software programs, instructions and units stored in the memory 120, namely, implements the micro-service full link tracing method in the above method embodiments.
The memory 120 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the system 10, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 120 optionally includes memory located remotely from processor 110, which may be connected to system 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more units are stored in the memory 120, and when executed by the one or more processors 110, perform the steps of:
when detecting that the transaction is started, generating an association identifier of the transaction;
calling a service corresponding to the transaction in a distributed system, and adding the association identifier to a log file called by the service;
aggregating all log files of the transaction and storing the aggregated log files in a preset database;
and responding to the transaction tracking instruction, inquiring a target log file in the preset database according to the association identifier and displaying the full link node information of the target transaction.
In an embodiment, the generating the association identifier of the transaction when detecting that the transaction is started specifically includes:
when the transaction start is detected, a unique character string is randomly generated to serve as the association identification of the transaction.
In one embodiment, the invoking a service corresponding to the transaction in a distributed system and adding the association identifier to a log file of the service invocation includes:
validating a combination of operations contained in the transaction;
calling corresponding services in the distributed system according to the operation combination;
and adding the association identifier to a log file of the service call.
In one embodiment, before the adding the association identifier to the log file of the service call, the method further comprises:
detecting a request head of a service call request, confirming whether a correlation identifier exists in the request head, if so, acquiring the correlation identifier, otherwise, generating the correlation identifier of the transaction.
In one embodiment, the adding the association identifier to the log file of the service call includes:
and injecting the association identifier into a mapping diagnosis context of a service container so that the association identifier is added into a log statement of the service call.
In one embodiment, the adding the association identifier to the log file of the service call further includes:
and when the child thread is created or reused, the association identification in the parent thread is transferred to the child thread.
In one embodiment, the querying, in response to the transaction tracking instruction, the target log file in the preset database according to the association identifier and displaying the full link node information of the target transaction includes:
analyzing the received transaction tracking instruction, and confirming a target transaction;
inquiring in the preset database according to the association identifier of the target transaction to obtain a target log file;
and displaying the full link node information of the target transaction according to the calling data in the target log file.
Embodiments of the present invention provide a non-transitory computer-readable storage medium storing computer-executable instructions for execution by one or more processors, e.g., to perform method steps S100-S400 of fig. 1 described above.
By way of example, nonvolatile storage media can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically erasable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in many forms such as Synchronous RAM (SRAM), dynamic RAM, (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The disclosed memory components or memory of the operating environment described herein are intended to comprise one or more of these and/or any other suitable types of memory.
To sum up, in the method, the device, the system and the medium for tracking the full link of the micro-service, disclosed by the invention, the method generates the correlation identification of the transaction when detecting the start of the transaction; calling a service corresponding to the transaction in the distributed system, and adding the associated identifier to a log file of service calling; aggregating all log files of the transaction and storing the aggregated log files in a preset database; and responding to the transaction tracking instruction, inquiring a target log file in a preset database according to the association identifier and displaying the full link node information of the target transaction. By generating the association identifier when the transaction is started, transmitting the association identifier when the service is called and recording the association identifier in the log file, the calling link in the transaction implementation process can be inquired and displayed according to the association identifier, the data traceability of the micro-service transaction is effectively improved, and the positioning efficiency of production problems is favorably improved.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by instructing relevant hardware (such as a processor, a controller, etc.) through a computer program, which may be stored in a non-volatile computer-readable storage medium, and the computer program may include the processes of the above method embodiments when executed. The storage medium may be a memory, a magnetic disk, a floppy disk, a flash memory, an optical memory, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (10)

1. A micro-service full link tracking method is characterized by comprising the following steps:
when detecting that the transaction is started, generating an association identifier of the transaction;
calling a service corresponding to the transaction in a distributed system, and adding the association identifier to a log file of the service calling;
aggregating all log files of the transaction and storing the aggregated log files in a preset database;
and responding to the transaction tracking instruction, inquiring a target log file in the preset database according to the association identifier and displaying the full link node information of the target transaction.
2. The method for tracking a microservice full link according to claim 1, wherein said generating the association id of the transaction when detecting the start of the transaction specifically comprises:
when the transaction start is detected, a unique character string is randomly generated to serve as the association identification of the transaction.
3. The method for tracking the full link of the micro service according to claim 1, wherein the step of calling the service corresponding to the transaction in the distributed system and adding the association identifier to the log file of the service call comprises:
validating a combination of operations contained in the transaction;
calling corresponding services in the distributed system according to the operation combination;
and adding the association identifier to a log file of the service call.
4. The method of claim 3, wherein prior to adding the association identifier to the log file of the service call, the method further comprises:
detecting a request head of a service call request, confirming whether a correlation identifier exists in the request head, if so, acquiring the correlation identifier, otherwise, generating the correlation identifier of the transaction.
5. The method according to claim 3, wherein the adding the association identifier to the log file of the service call comprises:
and injecting the association identifier into a mapping diagnosis context of a service container so that the association identifier is added into a log statement of the service call.
6. The method of claim 5, wherein the adding the association identifier to the log file of the service call further comprises:
and when the child thread is created or reused, the association identification in the parent thread is transferred to the child thread.
7. The method for tracking the full link of the microservice according to claim 1, wherein the step of responding to the transaction tracking command, inquiring the target log file in the preset database according to the association identifier and displaying the full link node information of the target transaction comprises:
analyzing the received transaction tracking instruction and confirming the target transaction;
inquiring in the preset database according to the association identifier of the target transaction to obtain a target log file;
and displaying the full link node information of the target transaction according to the calling data in the target log file.
8. A microservice full-link tracking apparatus, comprising:
the generation module is used for generating the association identification of the transaction when detecting the start of the transaction;
the adding module is used for calling the service corresponding to the transaction in the distributed system and adding the association identifier to a log file called by the service;
the aggregation storage module is used for aggregating all log files of the transaction and storing the aggregated log files in a preset database;
and the query display module is used for responding to the transaction tracking instruction, querying a target log file in the preset database according to the association identifier and displaying the full link node information of the target transaction.
9. A microservice full-link tracking system, the system comprising at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of microservice full-link tracing of any of claims 1-7.
10. A non-transitory computer-readable storage medium storing computer-executable instructions that, when executed by one or more processors, cause the one or more processors to perform the microservice full-link tracing method of any of claims 1-7.
CN202211364844.5A 2022-11-02 2022-11-02 Micro-service full-link tracking method, device, system and medium Pending CN115629940A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211364844.5A CN115629940A (en) 2022-11-02 2022-11-02 Micro-service full-link tracking method, device, system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211364844.5A CN115629940A (en) 2022-11-02 2022-11-02 Micro-service full-link tracking method, device, system and medium

Publications (1)

Publication Number Publication Date
CN115629940A true CN115629940A (en) 2023-01-20

Family

ID=84909119

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211364844.5A Pending CN115629940A (en) 2022-11-02 2022-11-02 Micro-service full-link tracking method, device, system and medium

Country Status (1)

Country Link
CN (1) CN115629940A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117097803A (en) * 2023-10-19 2023-11-21 易方信息科技股份有限公司 HTTP-based full link tracking method, system, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117097803A (en) * 2023-10-19 2023-11-21 易方信息科技股份有限公司 HTTP-based full link tracking method, system, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109446068B (en) Interface test method, device, computer equipment and storage medium
CN109672741B (en) Micro-service monitoring method and device, computer equipment and storage medium
US10061578B2 (en) System and method of configuring a data store for tracking and auditing real-time events across different software development tools in agile development environments
CN110290212B (en) Service call recording method, device, computer equipment and storage medium
WO2018113385A1 (en) Method and system for dynamically tracking application of client, client, and server
CN110489313B (en) Operation log recording method and device based on block chain and storage medium
WO2021218178A1 (en) Automatic report generation method, device, computer apparatus, and storage medium
WO2020259003A1 (en) Link tracking method and apparatus
CN112491602A (en) Behavior data monitoring method and device, computer equipment and medium
CN110489315B (en) Operation request tracking method, operation request tracking device and server
CN109656778A (en) Data capture method, device, computer equipment and storage medium
CN111078559B (en) Method, device, medium and computer equipment for extracting function call in java code
CN111475376A (en) Method and device for processing test data, computer equipment and storage medium
CN105607986A (en) Acquisition method and device of user behavior log data
US11816479B2 (en) System and method for implementing a code audit tool
CN110716878A (en) Automatic interface testing method, device and system
CN110969417A (en) Government affair item synchronization method, device, system, computer equipment and storage medium
EP4182788A1 (en) Methods for software development and operation process analytics and devices thereof
CN115629940A (en) Micro-service full-link tracking method, device, system and medium
CN112738138A (en) Cloud security hosting method, device, equipment and storage medium
CN113254399A (en) Log query method and device, electronic equipment and medium
CN110309062B (en) Use case generation method, device, electronic equipment and storage medium
CN114697942B (en) Self-connection method, system, terminal equipment and storage medium
CN115934040A (en) Demand analysis method and device, electronic equipment and storage medium
CN115828262A (en) Open source component vulnerability scanning method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination