CN106502874A - A kind of call chain tracking - Google Patents
A kind of call chain tracking Download PDFInfo
- Publication number
- CN106502874A CN106502874A CN201610942694.XA CN201610942694A CN106502874A CN 106502874 A CN106502874 A CN 106502874A CN 201610942694 A CN201610942694 A CN 201610942694A CN 106502874 A CN106502874 A CN 106502874A
- Authority
- CN
- China
- Prior art keywords
- path
- subsystem
- call chain
- request
- daily record
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/323—Visualisation of programs or trace data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3006—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Mathematical Physics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of call chain tracking, comprises the following steps:S1:Client initiates request;S2:Globally unique path ID is generated, and is added in system banner;S3:Path ID is stored in subsystem internal;S4:When downstream subsystem is transmitted, path ID is arranged in Http Request Header, and is added and is called sequence number;S5:Downstream subsystem obtains path ID, and encapsulates the system banner of oneself;S6:If being not transferred to last downstream subsystem, return to step S4 just carries out step S7 until being delivered to last downstream subsystem;S7:Subsystems print the path ID of current context in daily record, associate exception stack daily record;S8:Request is finished.The present invention can find the abnormal log of bottleneck point, trouble point and this request in request link;The route correctness in the unit can be weighed;Abnormal, the unnecessary dependence that can also be found out on link is called.
Description
Technical field
The present invention relates to a kind of call chain tracking.
Background technology
Current air ticket application service system includes a lot of subsystems, and client is initiated one query request or place an order to ask
Ask, can be by very long subsystem link, each link is likely to go wrong, and the service that each subsystem is directly provided
It is mutually isolated, monitoring daily record is also not occur simultaneously mutually, while each subsystem can produce the daily record of hundreds of G daily
Amount.Therefore, once the Request System response abnormality initiated of client or time-out, it is difficult to position that asking occurs in which link concrete
Topic.In order to solve problem above, the scheme that prior art is adopted for:In a large amount of monitoring daily records of several critical systems deployment, if
Certain Client-initiated Request System response failure, finds problem from the monitoring daily record of each critical system.However, prior art
Scheme there is following defect:
1. need to go to fish for monitoring daily record from each system, and these daily records effectively cannot be connected, subsystems
The monitoring also ununified standard of daily record;
2. some are difficult to reappear in the problem that user side is produced;
3. subsystems monitoring curve be normal, but certain user request strictly problematic, can not find problem
The true cause of generation.
Content of the invention
Goal of the invention:It is an object of the invention to provide a kind of call chain that can solve the problem that defect present in prior art with
Track method.
Technical scheme:Call chain tracking of the present invention, comprises the following steps:
S1:Client initiates request;
S2:Globally unique path ID is generated, and is added in system banner;
S3:Path ID is stored in subsystem internal;
S4:When downstream subsystem is transmitted, path ID is arranged in Http Request Header, and is added
Call sequence number;
S5:Downstream subsystem obtains path ID, and encapsulates the system banner of oneself;
S6:If being not transferred to last downstream subsystem, return to step S4, until being delivered under last
Alien's system just carries out step S7;
S7:Subsystems print the path ID of current context in daily record, associate exception stack daily record;
S8:Request is finished.
Further, in step S2, the path ID by the blocker of outermost layer service end by unified call chain in
Between part generate.
Further, in step S3, the subsystem internal uses Threadlocal store path ID.
Further, in step S5, the downstream subsystem obtains path ID using unified call chain middleware parsing.
Beneficial effect:Compared with prior art, the present invention has following beneficial effect:
1. the reason for present invention can effectively investigate client page response slowly or report an error, finds in request link
The abnormal log of bottleneck point, trouble point and this request;
2. the present invention is able to verify that and calls whether path meets expection, and by data modeling, route of the measurement in unit is just
True property;
3. the wrong index and response time index of the dependence that the present invention can be set up at all levels, finds out on link
Abnormal, unnecessary dependence is called.
Description of the drawings
Method flow diagrams of the Fig. 1 for the specific embodiment of the invention;
Method exemplary plots of the Fig. 2 for the specific embodiment of the invention.
Specific embodiment
With reference to the accompanying drawings and detailed description technical scheme is further introduced.
This specific embodiment discloses a kind of call chain tracking, as shown in figure 1, comprising the following steps:
S1:Client initiates request;
S2:Globally unique path ID is generated by unified call chain middleware in the blocker of outermost layer service end,
And be added in system banner;
S3:Path ID is stored in subsystem internal using Threadlocal;
S4:When downstream subsystem is transmitted, path ID is arranged in Http Request Header, and is added
Call sequence number;
S5:Downstream subsystem obtains path ID using unified call chain middleware parsing, and encapsulates the system mark of oneself
Know;
S6:If being not transferred to last downstream subsystem, return to step S4, until being delivered under last
Alien's system just carries out step S7;
S7:Subsystems print the path ID of current context in daily record, associate exception stack daily record;
S8:Request is finished.
Wherein, client include website, APP, M station in one or more.
As shown in Fig. 2 each system has the sequence number of calling of oneself, invoked system can be in the sequence number for oneself receiving
A sequence number rank is increased afterwards newly, to represent called.
By above method, the critical path of application can be easily found out, can specifically realize following functions:
1. it is able to know that it is which to apply the entrance for being called at most, service;
2. performance bottleneck, easy trouble point, change point can be found out;
3. Capacity Assessment, performance optimization can be used in;
4. link monitoring and peak early warning can be greatly promoted;
5. the harmony of network call can be weighed;
6. the route correctness in the unit can be weighed.
The related service of above call chain (such as daily record prints, generates path ID, arranges system serial number etc.) is without the need for each height
System high-volume changes code, need to only access and call D-chain trace middleware.Call chain middleware can encapsulate TSP-Client
And HTTP-Client, in the respective applications add blocker, be packaged for path ID using unified approach, store and
Next step is transmitted.
Business information can be combined with link, the mode for combining path ID using member id finds looking into for user's key
Inquiry, lower forms data, or the operation note of ox brush list, and these data are done news release, for each system (such as air control system
System) subscribe to, carry out risk identification and control.
Claims (4)
1. a kind of call chain tracking, it is characterised in that:Comprise the following steps:
S1:Client initiates request;
S2:Generate globally unique path ID and be added in system banner;
S3:Path ID is stored in subsystem internal;
S4:When downstream subsystem is transmitted, path ID is arranged in Http Request Header, and is added and is called
Sequence number;
S5:Downstream subsystem obtains path ID, and encapsulates the system banner of oneself;
S6:If being not transferred to last downstream subsystem, return to step S4, until being delivered to last lower alien
System just carries out step S7;
S7:Subsystems print the path ID of current context in daily record, associate exception stack daily record;
S8:Request is finished.
2. call chain tracking according to claim 1, it is characterised in that:In step S2, the path ID is by most
The blocker of outer layer service end is generated by unified call chain middleware.
3. call chain tracking according to claim 1, it is characterised in that:In step S3, the subsystem internal makes
With Threadlocal store path ID.
4. call chain tracking according to claim 1, it is characterised in that:In step S5, the downstream subsystem makes
Path ID is obtained with unified call chain middleware parsing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610942694.XA CN106502874B (en) | 2016-10-26 | 2016-10-26 | A kind of call chain tracking |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610942694.XA CN106502874B (en) | 2016-10-26 | 2016-10-26 | A kind of call chain tracking |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106502874A true CN106502874A (en) | 2017-03-15 |
CN106502874B CN106502874B (en) | 2019-05-10 |
Family
ID=58320944
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610942694.XA Active CN106502874B (en) | 2016-10-26 | 2016-10-26 | A kind of call chain tracking |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106502874B (en) |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107092553A (en) * | 2017-04-20 | 2017-08-25 | 广州华多网络科技有限公司 | A kind of method, device and computer system for setting up request call chain between process |
CN107818024A (en) * | 2017-11-22 | 2018-03-20 | 北京汇通金财信息科技有限公司 | A kind of request ID transmission methods and system based on spring blockers |
CN107943649A (en) * | 2017-11-21 | 2018-04-20 | 郑州云海信息技术有限公司 | A kind of distributed type assemblies performance monitoring system and method |
CN108183927A (en) * | 2017-11-22 | 2018-06-19 | 链家网(北京)科技有限公司 | The monitoring method and system that a kind of distributed system link calls |
CN108459939A (en) * | 2018-01-08 | 2018-08-28 | 平安科技(深圳)有限公司 | A kind of log collecting method, device, terminal device and storage medium |
CN109062809A (en) * | 2018-09-20 | 2018-12-21 | 北京奇艺世纪科技有限公司 | Method for generating test case, device and electronic equipment on a kind of line |
CN109104302A (en) * | 2018-07-18 | 2018-12-28 | 杭州鑫合汇互联网金融服务有限公司 | A kind of full link tracing monitoring method |
CN109150977A (en) * | 2018-07-24 | 2019-01-04 | 中信百信银行股份有限公司 | The method for automatically generating global serial number based on trade link |
CN109976921A (en) * | 2019-02-25 | 2019-07-05 | 青岛迅隆信息科技有限责任公司 | RPC service or the specified consuming method and device of message, can storage medium and terminal |
CN110647447A (en) * | 2019-08-01 | 2020-01-03 | 百度时代网络技术(北京)有限公司 | Abnormal instance detection method, apparatus, device and medium for distributed system |
WO2020024343A1 (en) * | 2018-07-30 | 2020-02-06 | 网宿科技股份有限公司 | Method invoke chain tracing method, electronic apparatus, and computer-readable storage medium |
CN110825425A (en) * | 2018-08-09 | 2020-02-21 | 北京京东尚科信息技术有限公司 | Configuration data management method and device, electronic equipment and storage medium |
CN111277643A (en) * | 2020-01-18 | 2020-06-12 | 深圳市麦谷科技有限公司 | HTTP link tracking recording method and system |
CN111382023A (en) * | 2018-12-27 | 2020-07-07 | 中国移动通信集团贵州有限公司 | Code fault positioning method, device, equipment and storage medium |
CN111724158A (en) * | 2020-05-25 | 2020-09-29 | 中国建设银行股份有限公司 | Transaction path generation method and system, and related computer device and storage medium |
CN111752819A (en) * | 2019-03-29 | 2020-10-09 | 广州市百果园信息技术有限公司 | Abnormity monitoring method, device, system, equipment and storage medium |
CN112783451A (en) * | 2021-01-22 | 2021-05-11 | 中信银行股份有限公司 | Time-consuming abnormity analysis method and system based on interceptor and storage medium |
CN113064750A (en) * | 2021-04-26 | 2021-07-02 | 山东英信计算机技术有限公司 | Tracking method, device and medium for BIOS log information |
CN108319536B (en) * | 2017-12-29 | 2021-11-23 | 北京五八信息技术有限公司 | Log setting method, device and equipment and computer readable storage medium |
CN114328168A (en) * | 2020-10-09 | 2022-04-12 | 腾讯科技(深圳)有限公司 | Anomaly detection method and device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120084779A1 (en) * | 2010-09-30 | 2012-04-05 | Microsoft Corporation | Tracking requests that flow between subsystems |
CN104219316A (en) * | 2014-09-12 | 2014-12-17 | 微梦创科网络科技(中国)有限公司 | Method and device for processing call request in distributed system |
CN105224445A (en) * | 2015-10-28 | 2016-01-06 | 北京汇商融通信息技术有限公司 | Distributed tracking system |
CN105260292A (en) * | 2015-10-09 | 2016-01-20 | 中国人民财产保险股份有限公司 | Log recording method, apparatus and system |
CN105577454A (en) * | 2016-03-03 | 2016-05-11 | 上海新炬网络信息技术有限公司 | Method for quickly positioning service fault based on log |
-
2016
- 2016-10-26 CN CN201610942694.XA patent/CN106502874B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120084779A1 (en) * | 2010-09-30 | 2012-04-05 | Microsoft Corporation | Tracking requests that flow between subsystems |
CN104219316A (en) * | 2014-09-12 | 2014-12-17 | 微梦创科网络科技(中国)有限公司 | Method and device for processing call request in distributed system |
CN105260292A (en) * | 2015-10-09 | 2016-01-20 | 中国人民财产保险股份有限公司 | Log recording method, apparatus and system |
CN105224445A (en) * | 2015-10-28 | 2016-01-06 | 北京汇商融通信息技术有限公司 | Distributed tracking system |
CN105577454A (en) * | 2016-03-03 | 2016-05-11 | 上海新炬网络信息技术有限公司 | Method for quickly positioning service fault based on log |
Cited By (31)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107092553A (en) * | 2017-04-20 | 2017-08-25 | 广州华多网络科技有限公司 | A kind of method, device and computer system for setting up request call chain between process |
CN107943649A (en) * | 2017-11-21 | 2018-04-20 | 郑州云海信息技术有限公司 | A kind of distributed type assemblies performance monitoring system and method |
CN107818024A (en) * | 2017-11-22 | 2018-03-20 | 北京汇通金财信息科技有限公司 | A kind of request ID transmission methods and system based on spring blockers |
CN108183927A (en) * | 2017-11-22 | 2018-06-19 | 链家网(北京)科技有限公司 | The monitoring method and system that a kind of distributed system link calls |
CN108319536B (en) * | 2017-12-29 | 2021-11-23 | 北京五八信息技术有限公司 | Log setting method, device and equipment and computer readable storage medium |
WO2019134226A1 (en) * | 2018-01-08 | 2019-07-11 | 平安科技(深圳)有限公司 | Log collection method, device, terminal apparatus, and storage medium |
CN108459939A (en) * | 2018-01-08 | 2018-08-28 | 平安科技(深圳)有限公司 | A kind of log collecting method, device, terminal device and storage medium |
CN108459939B (en) * | 2018-01-08 | 2020-06-23 | 平安科技(深圳)有限公司 | Log collection method and device, terminal equipment and storage medium |
CN109104302A (en) * | 2018-07-18 | 2018-12-28 | 杭州鑫合汇互联网金融服务有限公司 | A kind of full link tracing monitoring method |
CN109150977A (en) * | 2018-07-24 | 2019-01-04 | 中信百信银行股份有限公司 | The method for automatically generating global serial number based on trade link |
CN109150977B (en) * | 2018-07-24 | 2021-05-14 | 中信百信银行股份有限公司 | Method for automatically generating global serial number based on transaction link |
US11099889B2 (en) | 2018-07-30 | 2021-08-24 | Wangsu Science & Technology Co., Ltd. | Method-call-chain tracking method, electronic device, and computer readable storage medium |
WO2020024343A1 (en) * | 2018-07-30 | 2020-02-06 | 网宿科技股份有限公司 | Method invoke chain tracing method, electronic apparatus, and computer-readable storage medium |
CN110825425A (en) * | 2018-08-09 | 2020-02-21 | 北京京东尚科信息技术有限公司 | Configuration data management method and device, electronic equipment and storage medium |
CN109062809A (en) * | 2018-09-20 | 2018-12-21 | 北京奇艺世纪科技有限公司 | Method for generating test case, device and electronic equipment on a kind of line |
CN111382023A (en) * | 2018-12-27 | 2020-07-07 | 中国移动通信集团贵州有限公司 | Code fault positioning method, device, equipment and storage medium |
CN111382023B (en) * | 2018-12-27 | 2023-04-28 | 中国移动通信集团贵州有限公司 | Code fault positioning method, device, equipment and storage medium |
CN109976921A (en) * | 2019-02-25 | 2019-07-05 | 青岛迅隆信息科技有限责任公司 | RPC service or the specified consuming method and device of message, can storage medium and terminal |
CN111752819B (en) * | 2019-03-29 | 2024-04-05 | 广州市百果园信息技术有限公司 | Abnormality monitoring method, device, system, equipment and storage medium |
CN111752819A (en) * | 2019-03-29 | 2020-10-09 | 广州市百果园信息技术有限公司 | Abnormity monitoring method, device, system, equipment and storage medium |
CN110647447B (en) * | 2019-08-01 | 2023-04-14 | 百度时代网络技术(北京)有限公司 | Abnormal instance detection method, device, equipment and medium for distributed system |
CN110647447A (en) * | 2019-08-01 | 2020-01-03 | 百度时代网络技术(北京)有限公司 | Abnormal instance detection method, apparatus, device and medium for distributed system |
CN111277643B (en) * | 2020-01-18 | 2023-07-28 | 深圳市麦谷科技有限公司 | Http link tracking recording method and system |
CN111277643A (en) * | 2020-01-18 | 2020-06-12 | 深圳市麦谷科技有限公司 | HTTP link tracking recording method and system |
CN111724158A (en) * | 2020-05-25 | 2020-09-29 | 中国建设银行股份有限公司 | Transaction path generation method and system, and related computer device and storage medium |
CN111724158B (en) * | 2020-05-25 | 2024-03-26 | 中国建设银行股份有限公司 | Transaction path generation method, system, related computer equipment and storage medium |
CN114328168A (en) * | 2020-10-09 | 2022-04-12 | 腾讯科技(深圳)有限公司 | Anomaly detection method and device, computer equipment and storage medium |
CN114328168B (en) * | 2020-10-09 | 2024-07-02 | 腾讯科技(深圳)有限公司 | Abnormality detection method, abnormality detection device, computer device, and storage medium |
CN112783451A (en) * | 2021-01-22 | 2021-05-11 | 中信银行股份有限公司 | Time-consuming abnormity analysis method and system based on interceptor and storage medium |
CN113064750A (en) * | 2021-04-26 | 2021-07-02 | 山东英信计算机技术有限公司 | Tracking method, device and medium for BIOS log information |
CN113064750B (en) * | 2021-04-26 | 2023-03-28 | 山东英信计算机技术有限公司 | Tracking method, device and medium for BIOS log information |
Also Published As
Publication number | Publication date |
---|---|
CN106502874B (en) | 2019-05-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106502874A (en) | A kind of call chain tracking | |
US10812314B2 (en) | Methods and apparatuses for pushing a message | |
CN103023693B (en) | A kind of user behaviors log data management system and method | |
CN112751772B (en) | Data transmission method and system | |
JP6324534B2 (en) | Promotion status data monitoring method, apparatus, device, and non-executable computer storage medium | |
WO2019156963A3 (en) | Response at network terminal to initialization failure | |
CN113242297B (en) | Service system and service state adjusting method | |
US11262391B1 (en) | Power outage detection | |
CN112217657B (en) | Data transmission method, data processing method, device and medium based on SD-WAN system | |
CN103678423A (en) | Data file input system, device and method | |
CN112751722B (en) | Data transmission quality monitoring method and system | |
CN105450733A (en) | Business data distribution processing method and system | |
EP2708090B1 (en) | Sensor data distribution system | |
CN115037653B (en) | Service flow monitoring method, device, electronic equipment and storage medium | |
CN112783845B (en) | Data reconciliation system, method, device and medium | |
CN114048457A (en) | Multi-platform user relationship creation method, device, system and storage medium | |
CN114090293A (en) | Service providing method and electronic equipment | |
CN114416560A (en) | Program crash analysis aggregation method and system | |
CN109348053B (en) | Telephone number mark processing method, server, terminal device and computer readable storage medium | |
JP2019508762A (en) | Evaluation information matching method, apparatus and server | |
CN113807697A (en) | Alarm association-based order dispatching method and device | |
CN114428704A (en) | Method and device for full-link distributed monitoring, computer equipment and storage medium | |
CN107528797B (en) | Data processing method, device and system | |
CN111163088B (en) | Message processing method, system and device and electronic equipment | |
CN109559181A (en) | Order data acquisition method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |