# US 2013/0254313 A1 · Dynamic control over tracing of messages received by a message broker

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

- Number: US 2013/0254313 A1
- Document ID: US20130254313A1
- Status: Published application
- Kind: A1
- Application number: 13/874,138
- Filed: 2013-04-30
- Published: 2013-09-26
- Earliest claimed: 2012-03-22
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Shravan K. Kudikala; Amar A. Shah
- Web page: https://patentgrep.com/patent/US20130254313A1

## CPC

- H04L 69/22: Parsing or analysis of headers
- H04L 43/10: Active monitoring, e.g. heartbeat, ping or trace-route
- H04L 67/535: {Tracking the activity of the user (network monitoring arrangements H04L43/00; recording of computer activity G06F11/34)}
- G06F 11/323: {Visualisation of programs or trace data}
- G06F 11/36: Prevention of errors by analysis, debugging or testing of software
- G06F 21/00: Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- H04L 51/234: for tracking messages
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, system and computer program product for dynamically controlling a tracing of messages. A header (referred to herein as the “trace header”) is placed in a message by a sending application, where the trace header includes a structure for storing fields of data for defining tracing operations. Once the message with the trace header is received by a message broker after being sent by the sending application, the message broker will analyze the fields of the trace header and perform the appropriate tracing operation in response to the information provided in the trace header. Through the use of the trace header, the tracing overhead can be minimized as well as a faster diagnosis of the problem (e.g., errors while processing the messages through a message flow of the message broker) can be provided since less data will be needed to be analyzed.

## Claims

### Claim 1

A method for dynamically controlling a tracing of messages, the method comprising:
receiving a message, wherein said message comprises a header, wherein said header comprises a structure for storing fields of data used for defining tracing operations; and
performing, by a processor, a trace of said message in response to said header indicating said trace is to be performed.

### Claim 2 (depends on 1)

The method as recited in claim 1 further comprising:
storing trace information from said header in a persistence store in response to said header indicating to store said trace information from said header in said persistence store.

### Claim 3 (depends on 1)

The method as recited in claim 1 further comprising:
performing said trace of said message by applying trace rules associated with a trace identifier stored in said header.

### Claim 4 (depends on 1)

The method as recited in claim 1 further comprising:
performing said trace of said message on a host specified within said header.

### Claim 5 (depends on 1)

The method as recited in claim 1 further comprising:
instructing a processing application specified within said header to activate said trace of said message.

### Claim 6 (depends on 1)

The method as recited in claim 1 further comprising:
instructing all processing applications that receive said message to activate said trace of said message.

### Claim 7 (depends on 1)

The method as recited in claim 1 further comprising:
determining whether a user of a sending application has permission to request said trace of said message.

### Claim 8 (depends on 7)

The method as recited in claim 7 further comprising:
checking an identifier of said user of said sending application in said header against an access control list to determine whether said user of said sending application has permission to request said trace of said message.
