Method, system and device for tracking call chain in micro-service environment and storage medium
A technology of micro-service and call chain, which is applied in the direction of transmission system, program control device, program control design, etc., and can solve complex problems
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] A method of calling chain tracking in a microservice environment, such as figure 1 shown, including the following steps:
[0043] S100. Obtain the written byte stream in response to the startup of the JAVA application program;
[0044] S200. Identify the byte stream through HTTP Output Stream Wrapper;
[0045] S300. If the byte stream is identified as an HTTP byte stream, add a Trace Id request header to the HTTP byte stream;
[0046] S400. Transmit the HTTP byte stream added with the Trace Id request header to the callee.
[0047] The whole process can be understood as adding an interceptor when the Java application starts, that is, using the premain method of the JAVA Agent technology, dynamically modifying the Class bytecode when loading the class, and checking whether the class to be loaded is the specified class; if so, modify The behavior of the target class, or do nothing if it is not.
[0048] It should be understood that although figure 1 The various steps...
Embodiment 2
[0075] A system for tracking call chains in a microservice environment, including a byte stream acquisition module 100, an identification module 200, an addition module 300, and a transmission module 400;
[0076] The byte stream acquisition module 100, in response to the startup of the JAVA application, acquires the written byte stream;
[0077] The identifying module 200 is configured to identify the byte stream through the HTTP Output Stream Wrapper;
[0078] The adding module 300 is configured to: add the Trace Id request header to the HTTP byte stream if the byte stream is identified as an HTTP byte stream;
[0079] The transmission module 400 is configured to transmit the HTTP byte stream added with the Trace Id request header to the callee.
[0080] In other embodiments, the identification module 200 is configured to: initiate an HTTP byte stream identification request, and identify the HTTP byte stream based on the obtained byte stream.
[0081] In other embodiments,...
Embodiment 3
[0094] A computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following method steps are implemented:
[0095] In response to the start of the JAVA application program, obtain the written byte stream;
[0096] Identifying the byte stream through the HTTP Output Stream Wrapper;
[0097] If the byte stream is identified as an HTTP byte stream, the Trace Id request header is added to the HTTP byte stream;
[0098] Transfer the HTTP byte stream with the Trace Id header added to the callee.
[0099] In one embodiment, when the processor executes the computer program, the implementation of identifying the byte stream through the HTTP Output StreamWrapper is specifically: initiating an HTTP byte stream identification request, and identifying the HTTP output stream based on the obtained byte stream. byte stream.
[0100] In one embodiment, when the processor executes the compu...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com