IP Library › Granted Patent US 11,210,156
Granted Patent B1
US 11,210,156 · App. 17/034,187 · Granted Dec 28, 2021

Intelligent distributed tracing

Inventors: Xin Peng Liu (Beijing, CN); Yue Wang (Beijing, CN); Wei Wu (Beijing, CN); Ju Bo Tian (Xi'an, CN); Jing Jing Pan (Beijing, CN); Liang Wang (Beijing, CN)
Assignee: International Business Machines Corporation
G06F11/0778G06F11/0709G06F11/079G06F11/0751
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,210,156
App. No.
17/034,187
Granted
Dec 28, 2021
Kind
B1
Abstract

An approach for distributed tracing is provided. The approach for distributed tracing comprises receiving a user request for a transaction by one or more processing units, and extracting feature data from the received user request by one or more processing units. Further, if the extracted feature data matches at least one policy generated based on at least one error response received from at least one service is determined by one or more processing units and the at least one service is instructed to collect tracing data for the transaction in a head-based fashion responsive to the extracted feature data matching at least one policy by one or more processing units.

Claims (57)

1. A computer-implemented method for distributed tracing, comprising:

receiving, by one or more processing units, a user request for a transaction;

extracting, by one or more processing units, feature data from the user request;

determining, by one or more processing units, whether the feature data matches at least one policy generated based on at least one error response received from at least one service;

instructing, by one or more processing units, the at least one service to collect tracing data for the transaction in a head-based fashion responsive to the feature data matching the at least one policy; and

instructing, by one or more processing units, the at least one service to collect tracing data for the transaction in a tail-based fashion responsive to the extracted feature data does not match any of the at least one policy.

2. The computer-implemented method of claim 1 , further comprising:

determining, by one or more processing units, a further error response received from a service is a new type of error response; and

updating, by one or more processing units, the at least one policy by adding a new policy generated based on the further error response.

3. The computer-implemented method of claim 1 , further comprising:

determining, by one or more processing units, whether the transaction with tracing data collected is successful; and

removing, by one or more processing unit, the at least one policy corresponding to the transaction, responsive to the transaction being successful.

4. The computer-implemented method of claim 1 , further comprising:

synchronizing, by one or more processing units, the at least one policy with a policy server.

5. The computer-implemented method of claim 1 , further comprising:

instructing, by one or more processing units, the at least one service to send the collected tracing data to a tracing server without storing the tracing data in a corresponding local environment.

6. The computer-implemented method of claim 1 , further comprising:

receiving, by one or more processing units, response data for the user request from the at least one service; and

generating, by one or more processing units, the at least one policy responsive to the response data indicating an error response.

7. A computer-implemented system for distributed tracing, comprising:

a memory medium comprising program instructions; and

a processor, for executing the program instructions, when executing the program instructions causes the system to:

receive a user request for a transaction;

extract feature data from the user request;

determine whether the feature data matches at least one policy generated based on at least one error response received from at least one service;

instruct the at least one service to collect tracing data for the transaction in a head-based fashion responsive to the feature data matching at least one policy; and

instruct the at least one service to collect tracing data for the transaction in a tail-based fashion responsive to the extracted feature data does not match any one of the at least one policy.

8. The computer-implemented system of claim 7 , when executing the program instructions, the processor further causes the system to:

determine a further error response received from a service is a new type of error response; and

update the at least one policy by adding one new policy generated based on the further error response.

9. The computer-implemented system of claim 7 , when executing the program instructions, the processor further causes the system to:

determine if the transaction successfully collected the tracing data; and

responsive to the transaction successfully collecting the tracing data, remove the policy corresponding to the transaction.

10. The computer-implemented system of claim 7 , when executing the program instructions, the processor further causes the system to:

synchronize the at least one policy with a policy server.

11. The computer-implemented system of claim 7 , when executing the program instructions, the processor further causes the system to:

instruct the at least one service to send the tracing data to a tracing server without storing the tracing data in a corresponding local environment.

12. The computer-implemented system of claim 7 , when executing the program instructions, the processor further causes the system to:

receive response data for the user request from the at least one service; and

generate the at least one policy responsive to the response data indicating an error response.

13. A computer program product for distributed tracing, comprising a non-transitory computer readable storage having program codes embodied therewith, the program codes comprising:

program codes to receive a user request for a transaction;

program codes to extract feature data from the user request;

program codes to determine whether the feature data matches at least one policy generated based on at least one error response received from at least one service;

program codes to instruct the at least one service to collect tracing data for the transaction in a head-based fashion responsive to the feature data matching at least one policy; and

program codes to instruct the at least one service to collect tracing data for the transaction in a tail-based fashion responsive to the extracted feature data does not match any one of the at least one policy.

14. The computer program product of claim 13 , wherein the program codes further comprising:

program codes to determine a further error response received from a service is a new type of error response; and

program codes to update the at least one policy by adding one new policy generated based on the further error response.

15. The computer program product of claim 13 , wherein the program codes further comprising:

program codes to determine if the transaction successfully collected the tracing data; and

responsive to the transaction successfully collecting the tracing data, program codes to remove the policy corresponding to the transaction.

16. The computer program product of claim 13 , wherein the program codes further comprising:

program codes to instruct the at least one service to send the tracing data to a tracing server without storing the tracing data in a corresponding local environment.

17. The computer program product of claim 13 , wherein the program codes further comprising:

program codes to receive response data for the user request from the at least one service; and

program codes to generate the at least one policy, responsive to the response data indicating an error response.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 28, 2020
From: LIU, XIN PENG; WANG, YUE; WU, WEI; TIAN, JU BO; PAN, JING JING; WANG, LIANG
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 053899/0187 →
Cited By (3)
US 12,335,126 US 12,670,084 US 12,730,857