Error monitoring management method, system and equipment based on DevOps extended Sentry

By collecting and aggregating test data on the DevOps platform, using Cypress-E2E-SDK probes and data synchronization services, the full closed-loop error monitoring management of the Sentry tool is realized, solving the problems of integration complexity and insufficient scalability, and improving monitoring efficiency and system stability.

CN118626338AInactive Publication Date: 2024-09-10CHINA ELECTRONICS CLOUD DIGITAL INTELLIGENCE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410876873.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The integration of existing DevOps tools and Sentry tools is complex and has limited scalability, making it impossible to implement CI/CD and E2E full closed-loop quality monitoring processes, resulting in high operation and maintenance costs and low monitoring efficiency.

Method used

By collecting test data on the DevOps platform, sending it to the aggregation database and detail database for aggregation and display, using Cypress-E2E-SDK probes for end-to-end testing, combined with data synchronization service and detail page module, to achieve fully closed-loop error monitoring manage.

Benefits of technology

It achieves the rapid expansion of Sentry, simplifies integration complexity, improves monitoring and management efficiency, ensures system stability and reliability, improves CI/CD and log aggregation capabilities, and solves the lack of integration complexity, scalability and monitoring capabilities. problem.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626338A
    Figure CN118626338A
Patent Text Reader

Abstract

The invention relates to the technical field of test data management, and provides an error monitoring management method, system and device based on DevOps extended Sentry, and the method comprises the steps: collecting test data, and sending the collected test data to an aggregation database and a detail database; aggregating the test data through an aggregation database, and displaying and synchronizing the aggregated data; and querying corresponding detailed data from the detail database through a detail page module, and returning error monitoring data to the user according to the queried detailed data. According to the error monitoring management method, system and equipment based on DevOps expansion Sentry, the defects of integration complexity, expansibility, monitoring capability, automation degree, elastic expansion and the like in the prior art can be overcome, and a more efficient and more flexible error monitoring and management solution is provided for a user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of test data management, and in particular to an error monitoring management method, system and device based on DevOps extension Sentry. Background Art

[0002] Sentry is an open source error tracking tool that is widely used in projects of all sizes. It provides error monitoring and reporting functions and supports multiple programming languages ​​and frameworks. The DevOps tool chain includes tools such as Jenkins, GitLab CI / CD, and CircleCI, which are used in the fields of automated deployment and continuous integration / continuous delivery (CI / CD). In actual applications, the integration of DevOps tools and Sentry tools requires a lot of configuration and customization, which greatly increases the complexity and operation and maintenance costs of the system. In addition, the scalability is limited, the loop cannot be closed, and there is a lack of a full closed-loop quality monitoring process from CI / CD (continuous build / continuous deployment) and E2E.

[0003] Therefore, how to provide a method to quickly expand Sentry based on the DevOps system, reduce integration complexity, improve integration scalability, and improve the efficiency and stability of error monitoring and management has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] In view of this, in order to overcome the deficiencies of the prior art, the present invention aims to provide an error monitoring management method, system and device based on DevOps extension Sentry.

[0005] According to a first aspect of the present invention, there is provided an error monitoring management method based on DevOps extension Sentry, the method comprising:

[0006] Collect test data and send the collected test data to the aggregation database and the details database;

[0007] Aggregate test data through the aggregation database, and display and synchronize the aggregated data;

[0008] The corresponding detailed data is queried from the details database through the details page module, and error monitoring data is returned to the user based on the queried detailed data.

[0009] Preferably, in the error monitoring management method based on DevOps extension Sentry of the present invention, test data is collected and sent to an aggregation database and a details database, including: triggering an E2E full closed-loop workflow through CI / CD, using a Cypress-E2E-SDK probe to perform end-to-end testing in the E2E full closed-loop workflow, collecting test data, and sending the collected test data to an aggregation database and a details database, respectively.

[0010] Preferably, in the error monitoring management method based on DevOps extension Sentry of the present invention, the test data includes use case snapshot data and error information data.

[0011] Preferably, in the error monitoring management method based on DevOps extension Sentry of the present invention, test data is aggregated through an aggregation database, and the aggregated data is displayed and synchronized, including:

[0012] An aggregation database is used to aggregate the test data sent by the Cypress-E2E-SDK probe to obtain aggregated data, and the obtained aggregated data is stored;

[0013] Jump to the quality dashboard module through the DevOps platform. The quality dashboard module calls the data aggregation API to obtain aggregated data from the aggregation database for display.

[0014] The data synchronization service module is used to call the data aggregation API to obtain aggregated data from the aggregation database, and synchronize the obtained aggregated data to the DevOps platform.

[0015] Preferably, in the error monitoring management method based on DevOps extension Sentry of the present invention, jumping to the quality large screen module through the DevOps platform includes: generating a corresponding entry link through the DevOps platform, and jumping to the quality large screen module according to the generated entry link.

[0016] Preferably, in the error monitoring management method based on DevOps extension Sentry of the present invention, corresponding detailed data is queried from the detail database through the detail page module, and error monitoring data is returned to the user according to the queried detailed data, including:

[0017] Use the data details API to query the corresponding test data from the details database, and encapsulate the queried test data as detailed data;

[0018] Obtain corresponding detailed data from the data details API through the details service module, and obtain corresponding E2E use case snapshot data and JS error location information data according to the obtained corresponding detailed data;

[0019] Jump to the details page module through the DevOps platform. The details page module obtains the corresponding E2E use case snapshot data and JS error location information from the details service module, and returns the error monitoring data to the user based on the obtained corresponding E2E use case snapshot data and JS error location information.

[0020] Preferably, in the error monitoring management method based on DevOps extension Sentry of the present invention, the detailed data includes JS error stack data.

[0021] Preferably, in the error monitoring management method based on DevOps extension Sentry of the present invention, the error monitoring data includes E2E use case snapshots and JS error location data.

[0022] According to a second aspect of the present invention, there is provided an error monitoring and management system based on the DevOps extension of Sentry, the system comprising an error monitoring and management server, the error monitoring and management server being used for: collecting test data, and sending the collected test data to an aggregation database and a details database; aggregating the test data through the aggregation database, and displaying and synchronizing the aggregated data; querying corresponding detailed data from the details database through a details page module, and returning error monitoring data to the user based on the queried detailed data.

[0023] According to a third aspect of the present invention, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect of the present invention when executing the program.

[0024] The error monitoring management method, system and device based on DevOps extension of Sentry of the present invention have the following beneficial technical effects: Sentry is quickly expanded through the DevOps platform, and Sentry and DevOps system are connected into a full-closed-loop quality monitoring system through a series of middleware and automation tools, which not only expands the CI / CD capability of Sentry, but also expands the log aggregation capability of the DevOps system to efficiently manage and monitor the deployment, configuration and expansion of Sentry, improve the expansion capability of Sentry, simplify operation and maintenance work, ensure the stability and reliability of the system, and can effectively solve the deficiencies of the prior art in terms of integration complexity, scalability, monitoring capability, degree of automation and elastic expansion, and provide users with more efficient and flexible error monitoring and management solutions. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0026] Figure 1 This is an example diagram of an error monitoring and management system based on DevOps extension Sentry according to an embodiment of the present invention;

[0027] Figure 2 This is a diagram showing an example of steps of an error monitoring management method based on DevOps extension of Sentry according to an embodiment of the present invention;

[0028] Figure 3 A technical schematic diagram of an error monitoring management method based on DevOps extension Sentry according to an embodiment of the present invention;

[0029] Figure 4 A schematic diagram of the structure of the device provided by the present invention. DETAILED DESCRIPTION

[0030] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0031] It should be noted that the following embodiments and features in the embodiments may be combined with each other in the absence of conflict; and, based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making any creative work are within the scope of protection of the present disclosure.

[0032] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.

[0033] Figure 1 FIG. 1 is an example diagram of an error monitoring management system based on DevOps extension Sentry according to an embodiment of the present invention. Figure 1As shown, the system may include an error monitoring management server 101, a communication network 102 and / or one or more error monitoring management clients 103. Figure 1 The example shown is a plurality of error monitoring management clients 103 .

[0034] The error monitoring management server 101 can be any appropriate server for storing information, data, programs and / or any other suitable type of content. In some embodiments, the error monitoring management server 101 can perform appropriate functions. For example, in some embodiments, the error monitoring management server 101 can be used to perform error monitoring management based on the DevOps extension Sentry. As an optional example, in some embodiments, the error monitoring management server 101 can be used to: collect test data, send the collected test data to the aggregation database and the details database; aggregate the test data through the aggregation database, display and synchronize the aggregated data; query the corresponding detailed data from the details database through the details page module, and return the error monitoring data to the user based on the queried detailed data.

[0035] As another example, in some embodiments, the error monitoring management server 101 may send the error monitoring management method based on the DevOps extension Sentry to the error monitoring management client 103 for user use according to the request of the error monitoring management client 103 .

[0036] In some embodiments, the communication network 102 can be any suitable combination of one or more wired and / or wireless networks. For example, the communication network 102 can include any one or more of the following: the Internet, an intranet, a wide area network (WAN), a local area network (LAN), a wireless network, a digital subscriber line (DSL) network, a frame relay network, an asynchronous transfer mode (ATM) network, a virtual private network (VPN), and / or any other suitable communication network. The error monitoring management client 103 can be connected to the communication network 102 via one or more communication links (e.g., communication link 104), and the communication network 102 can be linked to the error monitoring management server 101 via one or more communication links (e.g., communication link 105). The communication link can be any communication link suitable for transmitting data between the error monitoring management client 103 and the error monitoring management server 101, such as a network link, a dial-up link, a wireless link, a hard-wired link, any other suitable communication link, or any suitable combination of such links.

[0037] Although the error monitoring management server 101 is illustrated as one device, in some embodiments, any suitable number of devices may be used to perform the functions performed by the error monitoring management server 101. For example, in some embodiments, multiple devices may be used to implement the functions performed by the error monitoring management server 101. Alternatively, a cloud service may be used to implement the functions of the error monitoring management server 101.

[0038] Based on the above system, an embodiment of the present application provides an error monitoring management method based on DevOps extension Sentry, which is described below through the following embodiments. Figure 2 The following is a diagram showing the steps of an error monitoring management method based on DevOps extension of Sentry according to an embodiment of the present invention. Figure 3 The technical principle diagram of an error monitoring management method based on DevOps extension Sentry according to an embodiment of the present invention.

[0039] The error monitoring management method based on DevOps extension Sentry of this embodiment can be executed on the error monitoring management server, such as Figure 2 and Figure 3 As shown, the error monitoring management method based on DevOps extension Sentry includes the following steps:

[0040] Step S201: Collect test data, and send the collected test data to the aggregation database and the details database.

[0041] As an optional example, in this embodiment, the E2E full closed-loop workflow is triggered by CI / CD, and the Cypress-E2E-SDK probe is used in the E2E full closed-loop workflow to perform end-to-end testing, collect test data, and send the collected test data to the aggregation database and the details database respectively. It should be noted that the test data in this embodiment includes use case snapshot data and error information data.

[0042] In this embodiment, CI / CD is a continuous integration and continuous delivery system for automating the build, test, and deployment process. The E2E full closed-loop workflow is an end-to-end test workflow that ensures that the functionality and performance of the entire system meet expectations. The Cypress-E2-SDK probe is the Cypress end-to-end test SDK, which is used to perform automated testing through the sentry probe. It can go deep into all levels of the application and capture detailed test data and results, such as reporting JavaScript errors and page screenshots, so as to deeply integrate with the application, capture more detailed test data and logs, and customize according to specific needs. It supports specific test scenarios and use cases, and can expand functions according to needs, such as adding new test cases, customized reports, etc.

[0043] Step S202: Aggregate the test data through the aggregation database, and display and synchronize the aggregated data.

[0044] As an optional example, in this embodiment, an aggregation database is used to aggregate the test data sent by the Cypress-E2E-SDK probe to obtain aggregated data, and the obtained aggregated data is stored. For example, in this embodiment, the aggregation database aggregates the test data to obtain JavaScript error event data for use by upper-layer applications.

[0045] As an optional example, when it is necessary to call and display aggregated data, in this embodiment, the DevOps platform is used to jump to the quality large screen module, and the quality large screen module calls the data aggregation API to obtain aggregated data from the aggregation database for display. For example, in this embodiment, the corresponding entry link is generated by the DevOps platform, and the jump to the quality large screen module is based on the generated entry link. For example, in this embodiment, the quality large screen module is used to display the system operation quality, based on aggregated data such as baseline data. The DevOps platform of this embodiment is used to manage and monitor testing and data processing, and is used to jump to the quality large screen module and the details page module through the entry connection.

[0046] As an optional example, in this embodiment, a data synchronization service module is used to call the data aggregation API to obtain aggregated data from the aggregation database, and synchronize the obtained aggregated data to the DevOps platform. In this embodiment, the data synchronization service module is used to synchronize data from the data processing end to the application end to ensure that the data on the DevOps platform is up to date. The data synchronization service module of this embodiment supports real-time data updates and adopts an efficient data transmission protocol to ensure the speed and reliability of data synchronization; in actual applications, the integrity and accuracy of data during transmission can also be ensured through a built-in data verification mechanism; it supports multiple data sources and targets and can be expanded according to needs.

[0047] Step S203: query corresponding detailed data from the detailed database through the detailed page module, and return error monitoring data to the user according to the queried detailed data.

[0048] As an optional example, in this embodiment, the data details API is used to query the corresponding test data from the details database, and the queried test data is encapsulated as detailed data. For example, the detailed data includes JS error stack data. In this embodiment, the details database is used to store detailed data for query by the data details API. For example, in this embodiment, the data details API is used to obtain JavaScript error stack data and page screen capture data from the details database.

[0049] Then, the corresponding detailed data is obtained from the data details API through the details service module, and the corresponding E2E use case snapshot data and JS error location information data are obtained according to the corresponding detailed data obtained. Jump to the details page module through the DevOps platform, the details page module obtains the corresponding E2E use case snapshot data and JS error location information from the details service module, and returns the error monitoring data to the user according to the corresponding E2E use case snapshot data and JS error location information obtained. The details service module in this embodiment can provide detailed data query services, support complex query conditions and multi-dimensional data analysis, and display the query results to the user in a friendly manner, supporting multiple display forms such as charts and tables. In actual applications, the details service module can quickly respond to complex query requests based on optimized query algorithms; support multiple data display forms, and users can choose freely; support multiple query condition combinations to meet the needs of different users.

[0050] For example, the error monitoring data in this embodiment includes E2E test case snapshots and JS error location data. In this embodiment, the details page module is used to provide snapshots of E2E test cases and JavaScript error location functions to help developers quickly find and fix problems. In actual applications, the details page module of this embodiment can generate snapshots of test cases, provide detailed test steps and results; help developers quickly locate problems through detailed error logs and stack information; and facilitate users to browse and analyze test results through intuitive interface design.

[0051] The error monitoring management method and system based on DevOps extension of Sentry in this embodiment quickly expands Sentry through the DevOps platform, and connects Sentry and DevOps systems into a fully closed-loop quality monitoring system through a series of middleware and automation tools, which not only expands the CI / CD capabilities of Sentry, but also expands the log aggregation capabilities of the DevOps system to efficiently manage and monitor the deployment, configuration and expansion of Sentry, improve the expansion capabilities of Sentry, simplify operation and maintenance work, ensure the stability and reliability of the system, and can effectively solve the deficiencies of the prior art in terms of integration complexity, scalability, monitoring capabilities, degree of automation and elastic expansion, and provide users with more efficient and flexible error monitoring and management solutions.

[0052] like Figure 4As shown, the present invention also provides a device, including a processor 310, a communication interface 320, a memory 330 for storing a computer program executable by the processor, and a communication bus 340. The processor 310, the communication interface 320, and the memory 330 communicate with each other through the communication bus 340. The processor 310 implements the above-mentioned error monitoring management method based on DevOps extension Sentry by running the executable computer program.

[0053] Among them, the computer program in the memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0054] The system embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected based on actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0055] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.

[0056] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. An error monitoring management method based on DevOps extension Sentry, characterized in that: The method comprises: Collect test data and send the collected test data to the aggregation database and the details database; Aggregate test data through the aggregation database, and display and synchronize the aggregated data; The corresponding detailed data is queried from the details database through the details page module, and the error monitoring data is returned to the user based on the queried detailed data.

2. The error monitoring management method based on DevOps extension Sentry according to claim 1 is characterized in that: Collect test data and send the collected test data to the aggregation database and the details database, including: triggering the E2E full closed-loop workflow through CI / CD, using the Cypress-E2E-SDK probe in the E2E full closed-loop workflow to perform end-to-end testing, collect test data, and send the collected test data to the aggregation database and the details database respectively.

3. The error monitoring management method based on DevOps extension Sentry according to claim 1 is characterized in that: Test data includes use case snapshot data and error information data.

4. The error monitoring management method based on DevOps extension Sentry according to claim 1 is characterized in that: Aggregate test data through the aggregation database, and display and synchronize the aggregated data, including: An aggregation database is used to aggregate the test data sent by the Cypress-E2E-SDK probe to obtain aggregated data, and the obtained aggregated data is stored; Jump to the quality dashboard module through the DevOps platform. The quality dashboard module calls the data aggregation API to obtain aggregated data from the aggregation database for display. The data synchronization service module is used to call the data aggregation API to obtain aggregated data from the aggregation database, and synchronize the obtained aggregated data to the DevOps platform.

5. The error monitoring management method based on DevOps extension Sentry according to claim 1 is characterized in that: Jumping to the quality large screen module through the DevOps platform includes: generating a corresponding entry link through the DevOps platform, and jumping to the quality large screen module according to the generated entry link.

6. The error monitoring management method based on DevOps extension Sentry according to claim 1 is characterized in that: The corresponding detailed data is queried from the detail database through the detail page module, and error monitoring data is returned to the user based on the queried detailed data, including: Use the data details API to query the corresponding test data from the details database, and encapsulate the queried test data as detailed data; Obtain corresponding detailed data from the data details API through the details service module, and obtain corresponding E2E use case snapshot data and JS error location information data according to the obtained corresponding detailed data; Jump to the details page module through the DevOps platform. The details page module obtains the corresponding E2E use case snapshot data and JS error location information from the details service module, and returns the error monitoring data to the user based on the obtained corresponding E2E use case snapshot data and JS error location information.

7. The error monitoring management method based on DevOps extension Sentry according to claim 1 is characterized in that: Detailed data includes JS error stack data.

8. The error monitoring management method based on DevOps extension Sentry according to claim 1 is characterized in that: Error monitoring data includes E2E use case snapshots and JS error location data.

9. An error monitoring and management system based on DevOps extension Sentry, characterized in that: The system includes an error monitoring management server, which is used to: collect test data, send the collected test data to an aggregation database and a detail database; aggregate the test data through the aggregation database, and display and synchronize the aggregated data; The corresponding detailed data is queried from the details database through the details page module, and the error monitoring data is returned to the user based on the queried detailed data.

10. A computer device, characterized in that: The computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method according to any one of claims 1 to 8 when executing the program.

Citation Information

Patent Citations

  • Automatic deployment method, device, equipment and storage medium

    CN111913721A