Dynamic dotting method and apparatus

By acquiring and verifying the description information of the configuration class file, dynamically intercepting and calling the interface at the specified method location to report the data, and using bytecode enhancement technology to replace the class file, the problem of not being able to dynamically add data points in distributed tracing is solved, improving the efficiency and accuracy of data point addition and enhancing code stability.

CN114064425BActive Publication Date: 2026-07-24BEIJING DAXING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING DAXING TECH CO LTD
Filing Date
2020-08-02
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

In existing technologies, distributed tracing cannot dynamically add tracking points, resulting in low tracking efficiency, excessive code redundancy, and poor code stability.

Method used

By obtaining the description information of the configuration class file, verifying the method parameters and names, intercepting the configuration method, and calling the interface to report the data at the beginning or end of the configuration method, the configuration class file is dynamically replaced using bytecode enhancement technology to achieve dynamic data logging in the program.

Benefits of technology

It enables dynamic addition of data points during program execution, improving data point efficiency and accuracy, reducing data point workload, and enhancing code stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114064425B_ABST
    Figure CN114064425B_ABST
Patent Text Reader

Abstract

The application discloses a dynamic dotting method and device, wherein the method comprises the following steps: acquiring description information of a setting class file, checking the description information of the setting class file, and acquiring a setting method and the setting class file according to a method parameter, the name of the setting method and the name of the setting class file; intercepting and preprocessing the setting method to set the setting method to a state that can be dotted; calling an interface on a front position or a rear position of the setting method, and reporting dotting data to fill the dotting data to the front position or the rear position of the setting method; redefining the setting class file to obtain an enhanced setting class file; and sending the enhanced setting class file to a setting agent end to replace the setting class file with the enhanced setting class file through bytecode enhancement technology to realize dynamic dotting of a program; and the application implants dotting data when the program runs, thereby improving dotting efficiency and dotting accuracy of the program.
Need to check novelty before this filing date? Find Prior Art