A multi-link tracking method

Through a unified architectural feature matrix and APM framework configuration, it solves the problems of low accuracy and complex configuration of cross-language and cross-framework application link tracking, and achieves efficient link tracking and performance management.

CN118227200BActive Publication Date: 2024-09-03HUANENG INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410650580.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-09-03
Estimated Expiration
2044-05-24

AI Technical Summary

Technical Problem

The existing technology is not very accurate in cross-language and cross-framework application link tracking, and it is highly complex to configure and maintain multiple APM tools, especially in large-scale and changeable microservice environments, which increases the operation and maintenance work. difficulty and error probability.

Method used

By introducing a unified architectural feature matrix, we can determine the appropriate APM framework and agent configuration, generate link tracking graphs, simplify the configuration and maintenance of the link tracking system, and improve the accuracy of cross-language and cross-frame application link tracking.

Benefits of technology

It greatly improves the accuracy of cross-language and cross-frame application link tracking, simplifies the configuration and maintenance of the link tracking system, and provides effective technical support for performance management and troubleshooting of complex applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118227200B
    Figure CN118227200B
Patent Text Reader

Abstract

The present invention provides a multi-link tracking method, which belongs to the field of data tracking technology, and includes: step 1: obtaining the architecture feature matrix of the application to be tracked, and determining the APM framework corresponding to each link of the application based on the architecture feature matrix of the application; step 2: determining the agent corresponding to each language type based on the development language type of the application to be tracked, and configuring parameters for each agent based on the type of the APM framework; step 3: collecting the link information of the application based on the APM framework and all agents; step 4: processing and analyzing the collected link information, obtaining a link tracking diagram and generating a performance report. The accuracy of link tracking is improved and the complexity of system maintenance is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data tracking technology, and in particular to a multi-link tracking method. Background Art

[0002] With the popularity of microservice architecture and cloud computing, applications are becoming more and more complex, involving multiple programming languages ​​and multiple frameworks, making link tracking technology particularly important.

[0003] At present, existing technical solutions mainly rely on a single APM tool or framework for link tracking. These tools are usually optimized for specific programming languages ​​or frameworks. For complex multi-language and multi-framework applications, multiple APM tools need to be manually integrated and configured. However, they face two major technical defects: First, when dealing with cross-language and cross-framework applications, the accuracy is not high, and it is difficult to fully track the complete link of each request; second, the configuration and maintenance of multiple APM tools is complex, especially in large-scale and changeable microservice environments, which greatly increases the difficulty of operation and maintenance work and the probability of errors.

[0004] Therefore, the present invention introduces a multi-link tracking method. Summary of the invention

[0005] The present invention provides a multi-link tracing method, which is used to introduce a unified architectural feature matrix and determine a suitable APM framework and agent configuration based on this matrix, thereby greatly improving the accuracy of cross-language and cross-framework application link tracing. At the same time, by generating a link tracing graph, the configuration and maintenance of the link tracing system are simplified, providing effective technical support for performance management and troubleshooting of complex applications.

[0006] The present invention provides a multi-link tracking method, comprising:

[0007] Step 1: Obtain the architecture feature matrix of the application being tracked, and determine the APM framework corresponding to each link of the application based on the architecture feature matrix of the application;

[0008] Step 2: Determine the agent corresponding to each language type based on the development language type of the application to be tracked, and configure parameters for each agent based on the type of APM framework;

[0009] Step 3: Collect application link information based on the APM framework and all agents;

[0010] Step 4: Process and analyze the collected link information, obtain the link tracking graph and generate a performance report.

[0011] The present invention provides a multi-link tracking method for obtaining a tracked application architecture feature matrix, comprising:

[0012] Extracting a first feature from a code base of the application program based on a preset automatic feature extraction tool and extracting a second feature from a preset document of the application program;

[0013] Classify the first feature and the second feature according to a preset feature type;

[0014] An application architecture feature matrix is ​​generated based on the feature classification results, wherein each row of the application architecture feature matrix corresponds to a feature classification result.

[0015] The present invention provides a multi-link tracking method, which extracts a second feature from a preset document of an application program, comprising:

[0016] Obtain the business process of the application based on the preset document, and determine and calibrate the key processes in the business process based on the preset calibration rules;

[0017] Map the calibrated business processes to the application's technical architecture based on the preset process-function-architecture component mapping table, and determine the components and functions of each business process;

[0018] Based on the preset feature extraction model, feature extraction is performed on the components and functions of each business process to obtain the component features and function features of each business process.

[0019] The present invention provides a multi-link tracking method, wherein the feature types include: functional features, performance features, reliability features, maintainability features, scalability features and security features.

[0020] The present invention provides a multi-link tracking method, which determines the APM framework corresponding to each link of an application based on an architecture feature matrix of the application, including:

[0021] Determine the stability index of each link involved in the application based on the application's architecture feature matrix;

[0022] The APM framework of each link is determined based on the stability index of each link and the index-framework type library.

[0023] The present invention provides a multi-link tracking method, which determines the stability index of each link involved in the application based on the architecture feature matrix of the application, including:

[0024] Analyze the dependencies between components under each business process according to the application architecture feature matrix and build a link diagram;

[0025] Analyze the frequency of user requests for different functions under the same business process based on the preset monitoring tool, and then determine the critical path of each link in the link diagram based on the request frequency;

[0026] Determine the refinement link of each critical path based on preset refinement rules;

[0027] The performance value of each refined link is calculated, and the stability index of each link is determined.

[0028] The present invention provides a multi-link tracking method, which calculates the performance value of each refined link, including:

[0029] Calculate the performance coefficient of each refined link:

[0030] ;in, is the performance coefficient of the refined link i, is the error rate of the refined link i, and , is the operation time of refining link i, is the resource consumption of refined link i, is the coefficient for refining the preset resource consumption of link i, Indicates the operation time The corresponding preset weights, represents the preset weight corresponding to the resource consumption of refined link i, is the additional resource consumption of thinning link i, is the preset coefficient of additional resource consumption of refinement link i, Indicates the preset basic additional resource consumption constant; is the preset basic operation time of refinement link i, is the operation change time of refinement link i, is the coefficient of variation corresponding to the operation variation time of refined link i, is the adjustment coefficient of the refined link i;

[0031] Determine the relationship between the performance coefficient of each refined link and the coefficients of all other refined links, and determine the performance value of each refined link:

[0032] ;in, is the performance value of the refined link i of the kth critical path of the pth link, is the number of refined links in the kth critical path of the pth link; is the importance weight of the refined link i of the kth critical path of the pth link relative to the refined link j, is the performance coefficient of the refined link i of the kth critical path of the pth link, is the performance coefficient of the refined link j of the kth critical path of the pth link, is the link correlation coefficient between the refined link i and the refined link j of the kth critical path of the pth link right The performance impact function,

[0033] in, ; Wherein, ln represents the sign of logarithmic function; Represents the performance adjustment factor.

[0034] The present invention provides a multi-link tracking method, which processes and analyzes the collected link information to obtain a link tracking graph, including:

[0035] Process the collected link information to obtain the performance indicators of each component;

[0036] Performing a first dependency analysis on the collected link information to determine the call chain of a single component;

[0037] Based on the call chain information of each single component, a dependency graph is constructed, where the nodes in the dependency graph represent components and the edges in the dependency graph represent the association relationship between components;

[0038] Perform a second dependency analysis on the call chains of all individual components to determine the association relationship between each call chain;

[0039] Generate an initial link graph based on all dependency graphs and the association relationship between each call chain;

[0040] Firstly adding the attributes of each node and edge in the initial link graph based on the preset graph setting rules and the performance indicators of each component;

[0041] A link tracking graph is generated based on the result after the first addition.

[0042] The present invention provides a multi-link tracing method, which is used to introduce a unified architectural feature matrix and determine a suitable APM framework and agent configuration based on this matrix, thereby greatly improving the accuracy of cross-language and cross-framework application link tracing. At the same time, by generating a link tracing graph, the configuration and maintenance of the link tracing system are simplified, providing effective technical support for performance management and troubleshooting of complex applications. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0044] Figure 1 It is a flowchart of a multi-link tracking method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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 are within the scope of protection of the present invention.

[0046] Example 1

[0047] like Figure 1 As shown, a multi-link tracking method provided by an embodiment of the present invention includes:

[0048] Step 1: Obtain the architecture feature matrix of the application being tracked, and determine the APM framework corresponding to each link of the application based on the architecture feature matrix of the application;

[0049] Step 2: Determine the agent corresponding to each language type based on the development language type of the application to be tracked, and configure parameters for each agent based on the type of APM framework;

[0050] Step 3: Collect application link information based on the APM framework and all agents;

[0051] Step 4: Process and analyze the collected link information, obtain the link tracking graph and generate a performance report.

[0052] In this embodiment, the architecture feature matrix is ​​a structured data format used to describe the architecture characteristics of the application, including information such as service components, dependencies between services, and the type of development language used. For example, an architecture feature matrix includes columns such as service name, service type (such as database, Web service, etc.), development language (such as Java, Python, etc.), dependent services, etc. Here, each row of the architecture feature matrix represents a feature under each feature classification, and each column represents a service item;

[0053] In this embodiment, the APM framework is a tool for monitoring, managing, and optimizing applications, providing functions such as link tracking, such as New Relic, Dynatrace, and AppDynamics.

[0054] In this embodiment, the development language type refers to the programming language used in application development, such as Java, Python, Go, etc. For example, if an application is mainly written in Java, then the agent program and APM framework should support the JVM (Java Virtual Machine) environment;

[0055] In this embodiment, the agent program is software integrated into the application program and used to collect performance data and link information. For example, for a Java application program, a Java agent is used to monitor the performance and link calls of the JVM. For a Python application program, a Python agent is required to collect runtime information.

[0056] In this embodiment, parameter configuration refers to adjusting the settings of the APM framework and agent program according to the specific needs and environment of the application, including configuring data collection frequency, log level, performance threshold, etc. For example, a high-traffic Web application needs to increase the data collection frequency to monitor performance fluctuations more carefully.

[0057] In this embodiment, link information refers to the data on the call relationship between various service components from entry to exit during a request processing process, which helps identify and analyze request paths and performance bottlenecks. For example, link information can show the complete path of a user request starting from the front-end Web server, passing through the cache service, database service, and finally returning a response.

[0058] In this embodiment, the link tracking diagram is used to show the transmission path of the request between various services and components within the application program, indicating the process of each request, including the various nodes (such as microservices, databases, etc.) that the request passes through, and the calling relationship between the nodes. For example, in an e-commerce platform application, the user's order request may first reach the front-end service, and then call the user service, inventory service and payment service in sequence. The link tracking diagram will show the order of this series of service calls and the time for each service to process the request;

[0059] In this embodiment, the performance report is a comprehensive document that summarizes the performance indicators and analysis results of the application, including statistical data of key performance indicators (KPIs) such as response time, throughput, error rate, etc., as well as analysis and interpretation of these data.

[0060] The working principle and beneficial effects of the above technical solution are: by introducing a unified architectural feature matrix and determining the appropriate APM framework and agent configuration method based on this matrix, the accuracy of cross-language and cross-framework application link tracking is greatly improved. At the same time, by generating a link tracking graph, the configuration and maintenance of the link tracking system are simplified, providing effective technical support for performance management and troubleshooting of complex applications.

[0061] Example 2

[0062] An embodiment of the present invention provides a multi-link tracking method for obtaining a tracked application architecture feature matrix, including:

[0063] Extracting a first feature from a code base of the application program based on a preset automatic feature extraction tool and extracting a second feature from a preset document of the application program;

[0064] Classify the first feature and the second feature according to a preset feature type;

[0065] An application architecture feature matrix is ​​generated based on the feature classification results, wherein each row of the application architecture feature matrix corresponds to a feature classification result.

[0066] In this embodiment, the preset automated feature extraction tool is a software tool used to automatically extract specific feature information from the code base and related documents of the application, which can automatically analyze the code and documents, thereby reducing the need for manual operations and improving the efficiency and accuracy of feature extraction. For example, the automated feature extraction tool includes a code analyzer for traversing the source code of the application, identifying and classifying specific patterns in the code structure (such as service calls, dependencies, etc.). At the same time, it also includes a document analyzer for extracting descriptive information from design documents or configuration files;

[0067] In this embodiment, the first feature includes: static features and dynamic features. The static features focus on the structure and composition of the application, such as the call and dependency relationship between services and the number of service interfaces, reflecting the design and architecture of the application. The dynamic features focus on the behavior of the application, including service response time, request frequency, etc., reflecting the performance and behavior mode of the application at runtime.

[0068] In this embodiment, the second feature includes: descriptive features are mainly extracted by analyzing preset documents of the application (such as design documents, user manuals, etc.), including descriptions of service responsibilities and interaction modes, which usually cannot be directly extracted from the code by automated tools and need to be obtained in combination with document content analysis;

[0069] In this embodiment, the architecture feature matrix is ​​generated by classifying and organizing the first features obtained by the automated feature extraction tool and the second features obtained by analyzing the document, and then generating the architecture feature matrix according to the preset feature types, with each row corresponding to the result of a feature classification, to form a matrix that comprehensively describes the application architecture.

[0070] The working principle and beneficial effects of the above technical solution are: using the preset automatic feature extraction tool to automatically extract key features from the application code base and preset documents, reducing human intervention, improving the efficiency and accuracy of feature extraction, and classifying the extracted first and second features according to the preset feature types, providing structured data support for subsequent analysis, and forming an application architecture feature matrix based on the classification results, with each row corresponding to a feature classification. This makes the relationship between features clearer and easier to analyze. It allows for a more accurate understanding and analysis of the application architecture, faster location of problems and analysis of links, and improved tracking efficiency and effectiveness.

[0071] Example 3

[0072] A multi-link tracking method provided by an embodiment of the present invention extracts a second feature from a preset document of an application program, including:

[0073] Obtain the business process of the application based on the preset document, and determine and calibrate the key processes in the business process based on the preset calibration rules;

[0074] Map the calibrated business processes to the application's technical architecture based on the preset process-function-architecture component mapping table, and determine the components and functions of each business process;

[0075] Based on the preset feature extraction model, feature extraction is performed on the components and functions of each business process to obtain the component features and function features of each business process.

[0076] In this embodiment, the business process of an application refers to a series of operations and steps executed within the application to achieve a specific business goal. For example, the business process of an e-commerce application includes steps such as user login, product search, adding to shopping cart, checkout and payment;

[0077] In this embodiment, the preset calibration rules are a set of predefined standards or rules used to identify and determine the key steps or links in the business process. For example, the step of "user completing payment" is used as a key process calibration rule for an online shopping application because it is directly related to the revenue of the business;

[0078] In this embodiment, the key process refers to the process that is crucial to achieving the entire business goal. These processes are the key to business success. For example, in a logistics distribution application, the package delivery process is a key process.

[0079] In this embodiment, the preset process-function-architecture component mapping table is a defined framework that maps business processes, their functions, and technical architecture components that support these functions. For example, the customer data processing process in a CRM system may be mapped to a database component, a back-end logic processing component, and a front-end display component.

[0080] In this embodiment, the calibrated business process is mapped to the technical architecture of the application based on a preset process-function-architecture component mapping table, which involves associating the business process and its key functions with specific technical architecture components according to pre-set mapping rules. For example, the order processing process of the e-commerce platform is mapped to components such as database services, payment gateways, and user interfaces.

[0081] In this embodiment, the functions of components and processes refer to the specific tasks performed by each technical component and the role they play in the entire business process. For example, the payment gateway component is responsible for processing payment transactions in the purchase process of an e-commerce application.

[0082] In this embodiment, component characteristics describe the properties of each component in the application, such as performance parameters, fault tolerance, and dependencies. For example, the characteristics of a web server component include its response time, the number of requests that can be processed per second, etc.

[0083] In this embodiment, the functional characteristics refer to the characteristics of a business process or component when performing its function, such as execution speed, efficiency, and reliability. For example, the functional characteristics of an order processing process may include the average time and success rate of order processing.

[0084] The working principle and beneficial effects of the above technical solution are: through feature extraction and business process mapping, the business process and technical components where the problem is located can be tracked more accurately, improving the tracking accuracy and efficiency, and providing a basis for architecture optimization and performance improvement by analyzing the component characteristics and functional characteristics of the business process. Mapping the business process to the technical architecture helps to obtain the dependencies between the components, optimize the architecture design, and realize the processing of multiple links.

[0085] Example 4

[0086] An embodiment of the present invention provides a multi-link tracking method, wherein the feature types include: functional features, performance features, reliability features, maintainability features, scalability features, and security features.

[0087] In this embodiment, the functional characteristics describe the functions of the system and the relationship between the functions. In the multi-link tracing method, the functional characteristics can be used to track the function call chain of the system, helping developers understand the call process and dependencies of the system functions, including: service responsibilities, number of APIs, and dependencies between services;

[0088] In this embodiment, the performance characteristics describe the performance of the system, such as response time, throughput, etc. By tracking the performance characteristics, developers can identify performance bottlenecks in the system and optimize performance, including: service response time, database access type, request frequency;

[0089] In this embodiment, the reliability characteristics describe the reliability and stability of the system. By tracking the reliability characteristics, developers can understand the fault tolerance of the system and promptly discover and solve problems that may cause system failures, including: error rate, retry mechanism, service backup and redundancy;

[0090] In this embodiment, the maintainability feature describes the maintainability and maintainability of the system. By tracking the maintainability features, developers can evaluate the code quality, readability and maintainability of the system, thereby improving the maintainability of the system, including: code complexity, code modification history, and document completeness;

[0091] In this embodiment, the scalability characteristics describe the scalability and extensibility of the system. By tracking the scalability characteristics, developers can evaluate the system's ability to scale in the face of growing demand, including: horizontal / vertical scalability, resource allocation;

[0092] In this embodiment, the security characteristics describe the security and security measures of the system. By tracking the security characteristics, developers can evaluate the security of the system, find potential security vulnerabilities and take corresponding security measures to protect the security of the system and data, including: authentication and authorization mechanisms, data encryption;

[0093] In this embodiment, when a multi-link tracing method is applied to monitor a distributed system, the system's function call chain, the performance of each service, the system's fault tolerance, the readability and maintainability of the code, the system's scalability, and the implementation of security measures can be tracked simultaneously. This comprehensive tracking of different types of features can help developers fully understand the system's operating status, discover problems in a timely manner, and optimize and improve them.

[0094] The working principle and beneficial effects of the above technical solution are: by classifying the features, we can have a clearer understanding of the performance of the system in different aspects. Different types of features describe different aspects of the system, which can more specifically improve the performance, reliability, maintainability and other aspects of the system.

[0095] Example 5

[0096] An embodiment of the present invention provides a multi-link tracking method, which determines an APM framework corresponding to each link of an application based on an architecture feature matrix of the application, including:

[0097] Determine the stability index of each link involved in the application based on the application's architecture feature matrix;

[0098] The APM framework of each link is determined based on the stability index of each link and the index-framework type library.

[0099] In this embodiment, the stability index of each link refers to an index for measuring the stability of each link (or each functional module or service) in the application, such as response time, error rate, availability, etc. For example, the stability index of an order processing link in an e-commerce application includes order processing time and order processing success rate.

[0100] In this embodiment, the indicator-framework type library is a database that records the mapping relationship between different stability indicators and applicable APM (application performance management) framework types, for example, a link with a higher response time and error rate uses a certain type of APM framework;

[0101] In this embodiment, the APM framework of each link is determined based on the stability index of the link and the index-framework type library, and is used to monitor and manage the specific APM framework of the link performance. For example, if the stability index of a link indicates that real-time monitoring and alarming are required, then an APM framework with real-time monitoring function is selected.

[0102] The working principle and beneficial effects of the above technical solution are: by determining the stability index of each link based on the application's architectural feature matrix, and determining the APM framework of each link according to the indicator-framework type library, accurate monitoring and management of each link of the application can be achieved, and cross-language and cross-system framework matching can be achieved, providing effective data support for multi-link tracking, thereby improving link tracking efficiency.

[0103] Example 6

[0104] An embodiment of the present invention provides a multi-link tracking method, which determines the stability index of each link involved in the application based on the architecture feature matrix of the application, including:

[0105] Analyze the dependencies between components under each business process according to the application architecture feature matrix and build a link diagram;

[0106] Analyze the frequency of user requests for different functions under the same business process based on the preset monitoring tool, and then determine the critical path of each link in the link diagram based on the request frequency;

[0107] Determine the refinement link of each critical path based on preset refinement rules;

[0108] The performance value of each refined link is calculated, and the stability index of each link is determined.

[0109] In this embodiment, the dependency relationship between components refers to the mutual association and degree of dependency between different components, including data flow, call relationship, etc. For example, in an e-commerce application, the order processing component may depend on the user authentication component and the inventory management component;

[0110] In this embodiment, the link diagram is obtained by analyzing the application architecture feature matrix, which shows the dependency relationship and execution order between various components in the business process. For example, the link diagram of the order processing business process may show the relationship between components such as user order placement, inventory check, and payment.

[0111] In this embodiment, the preset monitoring tool is a tool or system that is predetermined to monitor the performance of an application program. For example, the monitoring tool includes an application performance management system, a log analysis tool, etc.;

[0112] In this embodiment, different functions under the same business process represent different operations or functions in the same business process. For example, in the order processing process of an e-commerce application, different functions such as order placement, payment, and delivery are included.

[0113] In this embodiment, the request frequency refers to the number or frequency of user requests for different functions under the same business process. For example, the request frequency of a user placing an order may be higher than the request frequency of a user making a payment.

[0114] In this embodiment, the preset refinement rule is a defined rule or standard for determining how to refine and split the critical path. For example, the refinement rule includes splitting the critical path into smaller sub-links according to the execution order;

[0115] In this embodiment, the refined links of each critical path are more detailed links obtained by splitting the critical path according to the refinement rule. For example, the critical path of the order processing business process may include refined links such as order placement, payment, and delivery.

[0116] In this embodiment, the stability index of each link is an index for measuring the performance and stability of each link, such as response time, error rate, etc. For example, the stability index of a payment link may include average response time and success rate.

[0117] The working principle and beneficial effects of the above technical solution are: by analyzing the dependencies between components, determining the critical path and refining the links, it helps to fully understand the system architecture. After determining the critical path and refining the links, resources can be allocated more effectively, focusing on optimizing the components on the critical path. By refining the links, the problem can be located more accurately, and by calculating the stability index, the impact of system failures on the business can be reduced. It provides comprehensive monitoring and performance evaluation of each link of the application, improving system stability and link tracking efficiency.

[0118] Example 7

[0119] An embodiment of the present invention provides a multi-link tracking method, which calculates the performance value of each refined link, including:

[0120] Calculate the performance coefficient of each refined link:

[0121] ;in, is the performance coefficient of the refined link i, is the error rate of the refined link i, and , is the operation time of refining link i, is the resource consumption of refined link i, is the coefficient for refining the preset resource consumption of link i, Indicates the operation time The corresponding preset weights, represents the preset weight corresponding to the resource consumption of refined link i, is the additional resource consumption of thinning link i, is the preset coefficient of additional resource consumption of refinement link i, Indicates the preset basic additional resource consumption constant; is the preset basic operation time of refinement link i, is the operation change time of refinement link i, is the coefficient of variation corresponding to the operation variation time of refined link i, is the adjustment coefficient of the refined link i;

[0122] Determine the relationship between the performance coefficient of each refined link and the coefficients of all other refined links, and determine the performance value of each refined link:

[0123] ;in, is the performance value of the refined link i of the kth critical path of the pth link, is the number of refined links in the kth critical path of the pth link; is the importance weight of the refined link i of the kth critical path of the pth link relative to the refined link j, is the performance coefficient of the refined link i of the kth critical path of the pth link, is the performance coefficient of the refined link j of the kth critical path of the pth link, is the link correlation coefficient between the refined link i and the refined link j of the kth critical path of the pth link right The performance impact function,

[0124] in, ; Wherein, ln represents the sign of logarithmic function; Represents the performance adjustment factor.

[0125] In this embodiment, the performance coefficient of each refined link is a parameter for measuring the performance of the refined link, taking into account factors such as error rate, operation time, and resource consumption;

[0126] In this embodiment, the performance value of each refined link is a comprehensive performance evaluation value determined based on the performance coefficient and the coefficient relationship between other refined links;

[0127] In this embodiment, the operation variation time of the refined link refers to the variation amount of the operation execution time of the refined link, indicating the fluctuation of the operation execution time under different loads;

[0128] In this embodiment, the performance impact function is a function used to describe the performance impact relationship between detailed links, taking into account the link correlation coefficient and the performance adjustment factor. For example, a certain performance impact function may simulate the performance transfer and adjustment effect between links through the link correlation coefficient and the performance adjustment factor.

[0129] The working principle and beneficial effects of the above technical solution are: by calculating the performance coefficient and performance value, and considering the correlation and influence function between links, the performance of each refined link can be evaluated more accurately, and a more reliable link tracking solution can be provided, thereby improving system stability and performance.

[0130] Example 8

[0131] A multi-link tracking method provided by an embodiment of the present invention processes and analyzes the collected link information to obtain a link tracking graph, including:

[0132] Process the collected link information to obtain the performance indicators of each component;

[0133] Performing a first dependency analysis on the collected link information to determine the call chain of a single component;

[0134] Based on the call chain information of each single component, a dependency graph is constructed, where the nodes in the dependency graph represent components and the edges in the dependency graph represent the association relationship between components;

[0135] Perform a second dependency analysis on the call chains of all individual components to determine the association relationship between each call chain;

[0136] Generate an initial link graph based on all dependency graphs and the association relationship between each call chain;

[0137] Firstly adding the attributes of each node and edge in the initial link graph based on the preset graph setting rules and the performance indicators of each component;

[0138] A link tracking graph is generated based on the result after the first addition.

[0139] In this embodiment, processing the link information includes: sorting, filtering, converting or calculating the collected link information to obtain the performance indicators of each component. For example, extracting the performance indicators such as the response time and error rate of the component from the log data;

[0140] In this embodiment, the performance index of each component refers to a quantitative index that describes the performance characteristics of the component, such as response time, throughput, etc. For example, the performance index of component A may be that its average response time is 100 milliseconds.

[0141] In this embodiment, the first dependency analysis is to determine the direct call chain of each component, that is, the direct call sequence and relationship between components, by analyzing the dependency relationship between components in the system. For example, in the system, component A calls component B and component C, and component B calls component D, so the call chain of component A is A→B→D and A→C.

[0142] In this embodiment, the call chain of a single component refers to the call sequence and relationship between components. For example, component A calls component B and component C, forming a call chain.

[0143] In this embodiment, the dependency graph is a constructed graph structure, in which nodes represent components and edges represent calls or dependency relationships between components. For example, there is an edge between node A and node B, indicating that component A depends on component B;

[0144] In this embodiment, the association relationship between components refers to the mutual influence and dependency relationship between different components, which may be a call relationship, a data transfer relationship, etc. For example, in a dependency graph, there is an edge between node A and node B, indicating that component A depends on component B, and there is an edge between node C and node D, indicating that component C depends on component D.

[0145] In this embodiment, the second dependency analysis is to analyze the relationship between the various call chains to determine the dependency or association relationship between them. For example, call chain 1 and call chain 2 may share some components, indicating that there is a certain association between them;

[0146] In this embodiment, the association relationship between each call chain refers to the shared components, data transfer and other association relationships that may exist between different call chains. For example, call chain 1 and call chain 2 share component A, indicating that there is a certain association relationship between them and they may affect each other or share resources.

[0147] In this embodiment, the preset graph setting rules refer to rules set according to actual needs or specifications, which are used to guide the graph construction and attribute addition process, for example, specifying the style of a node, the color of an edge, etc.

[0148] The working principle and beneficial effects of the above technical solution are as follows: through the first dependency analysis and the second dependency analysis, combined with the performance indicators and dependencies of the components, a detailed link tracking diagram is constructed, which can better understand the relationship between the system architecture and components, quickly locate problems and optimize performance. At the same time, by analyzing the association between the call chains, the maintainability and stability of the system can be improved, which is helpful for the evaluation and improvement of the system design. It provides visual technical support for the realization of multi-link tracking and improves the efficiency and accuracy of link tracking.

[0149] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A multi-link tracking method, characterized in that: include: Step 1: Obtain the architecture feature matrix of the application being tracked, and determine the APM framework corresponding to each link of the application based on the architecture feature matrix of the application; Step 2: Determine the agent corresponding to each language type based on the development language type of the application to be tracked, and configure parameters for each agent based on the type of APM framework; Step 3: Collect application link information based on the APM framework and all agents; Step 4: Process and analyze the collected link information, obtain the link tracking graph and generate a performance report; The application architecture feature matrix that is tracked includes: Extracting a first feature from a code base of the application program based on a preset automatic feature extraction tool and extracting a second feature from a preset document of the application program; Classify the first feature and the second feature according to a preset feature type; Generate an application architecture feature matrix based on the feature classification results, wherein each row of the application architecture feature matrix corresponds to a feature classification result; The step of extracting the second feature of the preset document of the application program includes: Obtain the business process of the application based on the preset document, and determine and calibrate the key processes in the business process based on the preset calibration rules; Map the calibrated business processes to the application's technical architecture based on the preset process-function-architecture component mapping table, and determine the components and functions of each business process; Extract features of components and functions of each business process based on a preset feature extraction model to obtain component features and function features of each business process; The feature types include: functional features, performance features, reliability features, maintainability features, scalability features, and security features; The APM framework corresponding to each link of the application is determined based on the application's architecture feature matrix, including: Determine the stability index of each link involved in the application based on the application's architecture feature matrix; The APM framework of each link is determined based on the stability index of each link and the index-framework type library.

2. A multi-link tracking method according to claim 1, characterized in that: Based on the application's architecture feature matrix, determine the stability indicators of each link involved in the application, including: Analyze the dependencies between components under each business process according to the application architecture feature matrix and build a link diagram; Analyze the frequency of user requests for different functions under the same business process based on the preset monitoring tool, and then determine the critical path of each link in the link diagram based on the request frequency; Determine the refinement link of each critical path based on preset refinement rules; The performance value of each refined link is calculated, and the stability index of each link is determined.

3. A multi-link tracking method according to claim 2, characterized in that: Calculate the performance value of each refined link, including: Calculate the performance coefficient of each refined link: ;in, is the performance coefficient of the refined link i, is the error rate of the refined link i, and , is the operation time of refining link i, is the resource consumption of refined link i, is the coefficient for refining the preset resource consumption of link i, Indicates the operation time The corresponding preset weights, represents the preset weight corresponding to the resource consumption of refined link i, is the additional resource consumption of thinning link i, is the preset coefficient of additional resource consumption of refinement link i, Indicates the preset basic additional resource consumption constant; is the preset basic operation time of refinement link i, is the operation change time of refinement link i, is the coefficient of variation corresponding to the operation variation time of refined link i, is the adjustment coefficient of the refined link i; Determine the relationship between the performance coefficient of each refined link and the coefficients of all other refined links, and determine the performance value of each refined link: ;in, is the performance value of the refined link i of the kth critical path of the pth link, is the number of refined links in the kth critical path of the pth link; is the importance weight of the refined link i of the kth critical path of the pth link relative to the refined link j, is the performance coefficient of the refined link i of the kth critical path of the pth link, is the performance coefficient of the refined link j of the kth critical path of the pth link, is the link correlation coefficient between the refined link i and the refined link j of the kth critical path of the pth link right The performance impact function, in, ; Wherein, ln represents the logarithmic function symbol; Indicates the performance adjustment factor.

4. A multi-link tracking method according to claim 1, characterized in that: Process and analyze the collected link information to obtain a link tracking diagram, including: Process the collected link information to obtain the performance indicators of each component; Performing a first dependency analysis on the collected link information to determine the call chain of a single component; Based on the call chain information of each single component, a dependency graph is constructed, where the nodes in the dependency graph represent components and the edges in the dependency graph represent the association relationship between components; Perform a second dependency analysis on the call chains of all individual components to determine the association relationship between each call chain; Generate an initial link graph based on all dependency graphs and the association relationship between each call chain; Firstly adding the attributes of each node and edge in the initial link graph based on the preset graph setting rules and the performance indicators of each component; A link tracking graph is generated based on the result after the first addition.