Micro-service log link tracking method and system

A link tracking and microservice technology, applied in the field of microservice log link tracking methods and systems, can solve problems such as difficulty in locating fault points, and achieve the effect of quickly locating faults

Pending Publication Date: 2022-04-08
XIAMEN ANSCEN NETWORK TECH CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Due to the large number of microservices and the complexity of the business, it is mainly reflected in the fact that one request may nee...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Micro-service log link tracking method and system
  • Micro-service log link tracking method and system
  • Micro-service log link tracking method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] The following detailed description will be further described below with reference to the accompanying drawings and examples. It will be appreciated that the specific embodiments described herein are only used to explain the relevant invention, not the limitation of the invention. It will also be noted that only portions associated with the relevant invention are shown in the drawings for ease of description.

[0043] It should be noted that the features of the present application and the features in the embodiments in the present application can be combined with each other in the case of an unable conflict. The present application will be described in detail below with reference to the accompanying drawings.

[0044] figure 1 An exemplary system architecture 100 that can be applied to a micro-service log link tracking method according to the present application embodiment can be applied.

[0045] Such as figure 1As shown, the system architecture 100 can include terminal de...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a micro-service log link tracking method and system. The method comprises the steps that a request of an upstream server side is intercepted, a request header is obtained, a unique call chain ID is generated according to the request header, a corresponding parent service name is obtained, and the call chain ID and the parent service name are stored; when other services are requested to be called, a corresponding configuration mode is selected according to the mode of calling other services, and meanwhile, a calling chain ID and a parent service name are added to a request header; creating a business log based on a unified log format and a log standard, compiling the call chain ID and the parent service name into a call relationship among the services according to the log format, and recording the call relationship in the business log; when service link tracking is carried out, all service logs on the link are inquired according to the Traced in the request of the service, and the service logs are analyzed to obtain a complete service calling link of the request of the service. According to the invention, the fault can be quickly positioned, and targeted analysis and statistics on each service line are realized.

Description

Technical field [0001] The present invention relates to the technical field of micro service architecture, in particular a micro-service log link tracking method and system. Background technique [0002] The micro service architecture is a distributed architecture. The various micro services in the system can be independently deployed, and each service is only concerned and completes a business direction, so a complex system is often composed of multiple microacies. Due to the numerous number of microns, the complexity of the business is mainly reflected, a request may need to call a lot of services, and multiple services are called each other, and if there is an error and abnormality, it is very difficult to locate the fault point. Therefore, in the micro-service architecture, distributed service link tracking must be implemented, and the incorrect positioning error information is quickly positioned by calling the chain. Inventive content [0003] The present invention proposes...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/30
Inventor 罗华辉陈贵民陈思德许光锋郑汉军黄焮
Owner XIAMEN ANSCEN NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products