Policy-based logging using workload profiles
US-2022398151-A1 · Dec 15, 2022 · US
US12399799B2 · US · B2
| Field | Value |
|---|---|
| Publication number | US-12399799-B2 |
| Application number | US-202318214298-A |
| Country | US |
| Kind code | B2 |
| Filing date | Jun 26, 2023 |
| Priority date | May 18, 2023 |
| Publication date | Aug 26, 2025 |
| Grant date | Aug 26, 2025 |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
Official abstract text for this publication.
Embodiments of the present disclosure provide a method, an electronic device, and a computer program product for tracing information. The method includes: receiving an information acquisition request from a work container, the information acquisition request comprising information about a workload of the work container; determining, based on the information about the workload, a group to which the workload belongs; determining tracing information corresponding to the group, the tracing information being used for associating a log of the workload with logs of related workloads of the workload; and sending the tracing information to the work container. With the method according to embodiments of the present disclosure, the work container does not need to save a tracing context for each workload. This can save storage space in the work container, even without taking up storage space in the work container.
Opening claim text (preview).
The invention claimed is: 1. A method for tracing information, comprising: receiving by a first service of a microservices application that is not one of a plurality of work containers of a microservices application, through a first application programming interface (API), an information acquisition request from a work container of the microservices application, the information acquisition request comprising information about a workload of the work container; determining by the first service, based on the information about the workload, a group to which the workload belongs, based on accessing a set of matching policies stored on a database that is external to the plurality of work containers to determine whether the workload matches any matching policy among the set of matching policies based on the information about the workload; determining tracing information corresponding to the group, the tracing information being used for associating a log of the workload with logs of related workloads of the workload, wherein the first service stores the tracing information in the database that is external to the plurality of work containers and not in the plurality of work containers; sending by the first service through the first API, the tracing information to the work container; receiving by the first service through a second API, during a runtime of the microservices application, a runtime instruction for the set of matching policies, the runtime instruction comprising at least one of a create instruction, a modify instruction, and a delete instruction; updating by the first service, during the runtime of the microservices application, the set of matching policies based on the runtime instruction including storing an update to the matching policies and corresponding tracing information in the database that is external to the plurality of work containers; receiving by the first service, through the first API, a second information acquisition request from a second work container of the microservices application, the second information acquisition request comprising second information about a workload of the second work container; determining by the first service, a second group to which the workload of the second work container belongs based on the updated set of matching policies and information about a workload of the second work container; and sending by the first service, through the first API, tracing information corresponding to the second group, to the second work container. 2. The method according to claim 1 , wherein determining the group to which the workload belongs comprises: determining, in a predetermined order in the set of matching policies, whether the workload matches any matching policy among the set of matching policies based on the information about the workload; and determining, based on a determination that the workload matches a target matching policy, that the workload belongs to a group corresponding to the target matching policy. 3. The method according to claim 2 , wherein determining whether the workload matches any matching policy comprises: determining, based on the information about the workload and information required for each matching policy, whether the workload matches any matching policy, wherein it is determined, if the information about the workload comprises information required for a given matching policy, that the workload matches the given matching policy; or it is determined, if the information about the workload does not comprise information required for a given matching policy, that the workload does not match the given matching policy. 4. The method according to claim 2 , further comprising: stopping matching between the workload and any matching policy in response to determining that the group to which the workload belongs has been determined. 5. The method according to claim 2 , wherein the work container is a first work container, the method further comprising: sending the tracing information to the second work container in response to the group to which the workload of the second work container the same as the group to which the workload of the first work container belongs. 6. The method according to claim 1 , wherein updating the set of matching policies comprises creating a new matching policy in the database that stores the set of matching policies, modifying an existing matching policy in the database, or deleting an existing matching policy in the database. 7. The method according to claim 1 , further comprising: determining that a target matching policy is a matching policy of a target type, and that the number of workloads in the group reaches a predetermined threshold; and generating an instruction for deleting the target matching policy from the set of matching policies. 8. The method according to claim 1 , further comprising: generating new tracing information about the workload in response to determining that the workload does not belong to any group. 9. The method according to claim 1 , wherein the information about the workload comprises at least one of an identifier of the workload, an identifier of the work container, and a work time for the workload. 10. The method according to claim 1 , wherein the workload is from a workload controller associated with the work container, the workload controller being used to allocate at least a portion of an input load as the workload to the work container. 11. An electronic device, comprising: a processor; and a memory coupled to the processor and having instructions stored therein, wherein the instructions, when executed by the processor, cause the electronic device to perform operations comprising: receiving by a first service of a microservices application that is not one of a plurality of work containers of a microservices application, through a first application programming interface (API), an information acquisition request from a work container of the microservices application, the information acquisition request comprising information about a workload of the work container; determining by the first service, based on the information about the workload, a group to which the workload belongs based on accessing a set of matching policies stored on a database that is external to the plurality of work containers to determine whether the workload matches any matching policy among the set of matching policies based on the information about the workload; determining tracing information corresponding to the group, the tracing information being used for associating a log of the workload with logs of related workloads of the workload wherein the first service stores the tracing information in the database that is external to the plurality of work containers and not in the plurality of work containers; sending by the first service, through the first API, the tracing information to the work container; receiving, by the first service, through a second API, during a runtime of the microservices application, a runtime instruction for the set of matching policies, the runtime instruction comprising at least one of a create instruction, a modify instruction, and a delete instruction; updating by the first service, during the runtime of the microservices application, the set of matching policies based on the runtime instruction including storing an update to the matching policies and corresponding tracing information in the database that is external to the plurality of work containers; receiving by the first service, through the first API, a second information acquisition request from a second work container of the microservices application, the second information acquisition request comp
Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents (software debugging using additional hardware using a specific debug interface G06F11/3656; performance evaluation by tracing or monitoring G06F11/3466) · CPC title
wherein the means or processing minimize the use of computing system or of computing system component resources, e.g. non-intrusive monitoring which minimizes the probe effect: sniffing, intercepting, indirectly deriving the monitored data from other directly available data · CPC title
Data logging (G06F11/14, G06F11/2205 take precedence) · CPC title
by tracing the execution of the program · CPC title
Related publications grouped by family.
Answers are generated from the same data shown on this page.