# US 11,119,843 B2 · Verifying application behavior based on distributed tracing

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 11,119,843 B2
- Document ID: US11119843B2
- Status: Granted
- Kind: B2
- Application number: 16/784,541
- Filed: 2020-02-07
- Published: 2021-08-12
- Granted: 2021-09-14
- Earliest claimed: 2020-02-07
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Gary Brown
- Web page: https://patentgrep.com/patent/US11119843B2

## CPC

- G06F 11/079: {Root cause analysis, i.e. error or fault diagnosis (in a hardware test environment G06F11/22; in a software test environment G06F11/36)}
- G06F 11/0709: {in a distributed system consisting of a plurality of standalone computer nodes, e.g. clusters, client-server systems}
- G06F 11/0751: {Error or fault detection not based on redundancy (power supply failures G06F1/30; network fault management H04L41/06)}
- G06F 11/0778: {Dumping, i.e. gathering error/state information after a fault for later diagnosis}
- G06F 11/3006: {where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems (multiprogramming arrangements G06F9/46; allocation of resources G06F9/50)}
- G06F 11/302: {where the computing system component is a software system}
- G06F 11/3466: {Performance evaluation by tracing or monitoring}
- G06Q 10/10: Office automation; Time management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR

## Abstract

Systems and methods for distributed tracing of a distributed application include collecting and analyzing trace data within computing containers providing services of the distributed application. Failures of a service to conform to a behavior policy can be immediately flagged, and in some examples this may trigger further analysis by a trace data collection and analysis service. By analyzing trace data at the service level within the computing containers providing the services, failures of a service to conform to a behavior policy can be detected quickly and efficiently.

## Claims

### Claim 1

A method comprising:
hosting a plurality of computing containers, each one of the plurality of computing containers to provide a service for a distributed application; and
providing a trace data collection and analysis agent within each one of the plurality of computing containers, the trace data collection and analysis agent to:
collect trace data about the service provided by the one of the plurality of computing containers containing the trace data collection and analysis agent;
analyzing the trace data to verify a behavior of the service provided by the one of the computing containers containing the trace data collection and analysis agent; and
in response to a failure to verify the behavior of the service provided by the one of the computing containers containing the trace data collection and analysis agent, annotating the trace data to indicate the failure.

### Claim 2 (depends on 1)

The method of claim 1 wherein the trace data collection and analysis agent is further to send the trace data to a trace data collection and analysis service.

### Claim 3 (depends on 1)

The method of claim 1 further comprising further analyzing the trace data by the trace data collection and analysis service to verify the behavior of the distributed application.

### Claim 4 (depends on 3)

The method of claim 3 further comprising in response to a failure to verify the behavior of one or more of the services by the trace data collection service, generating an alert and presenting it on a display device.

### Claim 5 (depends on 3)

The method of claim 3 wherein the trace data is further analyzed by the trace data collection and analysis service only if it is annotated.

### Claim 6 (depends on 5)

The method of claim 5 wherein the trace data from each one of the trace data collection and analysis agents forms a fragment of trace data in a larger set of trace data.

### Claim 7 (depends on 5)

The method of claim 5 wherein the trace data from each one of the trace data collection and analysis agents is further analyzed by the trace data collection and analysis service if the trace data from any of the trace data collection and analysis agents is annotated.

### Claim 8 (depends on 7)

The method of claim 7 wherein further analyzing the trace data comprises one or more of:
verifying an order of a series of request between two or more of the services;
verifying an amount of time it takes one or more of the services to process a request; and
verifying that information in one of a request and a response between two or more of the services meets a criteria.

### Claim 9 (depends on 1)

The method of claim 1 wherein the trace data collection and analysis agent is a sidecar agent within the one of the plurality of computing containers containing the trace data collection and analysis agent.

### Claim 10 (depends on 1)

The method of claim 1 wherein each one of the plurality of computing containers is one of a Docker container, a Linux container, and a Kubernetes container.

### Claim 11 (depends on 1)

The method of claim 1 wherein at least two of the plurality of computing containers are hosted on different computing devices.

### Claim 12

A computing system, comprising:
at least one computing device comprising:
a memory; and
a processor device coupled to the memory to:
host a plurality of computing containers to provide a service for a distributed application; and
provide a trace data collection and analysis agent within each of the plurality of computing containers, the trace data collection and analysis agent to:
collect trace data about the service;
analyze the trace data to verify a behavior of the service; and
in response to a failure to verify the behavior of the service, annotate the trace data to indicate the failure.

### Claim 13 (depends on 12)

The computing device of claim 12 wherein the trace data collection and analysis agent is further to send the trace data to a trace data collection service.

### Claim 14 (depends on 12)

The computing device of claim 12 wherein the trace data forms a fragment of trace data in a larger set of trace data.

### Claim 15 (depends on 12)

The computing device of claim 12 wherein the trade data collection and analysis agent is a sidecar agent within the computing container.

### Claim 16 (depends on 12)

The computing device of claim 12 wherein the computing container is one of a Docker container, a Linux container, and a Kubernetes container.

### Claim 17

A computer program product for verifying a behavior of a service provided by a plurality of computing containers, the computer program product stored on a non-transitory computer-readable storage medium and including instructions to cause a processor device to:
host the plurality of computing containers to provide the service; and
provide a trace data collection and analysis agent within each of the plurality of computing containers, the trace data collection and analysis agent to:
collect trace data about the service;
analyze the trace data to verify a behavior of the service; and
in response to a failure to verify the behavior of the service, annotate the trace data to indicate the failure.

### Claim 18 (depends on 17)

The computer program product of claim 17 wherein the trace data collection and analysis agent is further to send the trace data to a trace data collection service.

### Claim 19 (depends on 17)

The computer program product of claim 17 wherein the trace data forms a fragment of trace data in a larger set of trace data.

### Claim 20 (depends on 17)

The computer program product of claim 17 wherein the trace data collection and analysis agent is a sidecar agent within the computing container.
