Methods for performing full-link tracing on transaction and native distributed databases
AssigneeBeijing OceanBase Technology Co., Ltd.
InventorZhifeng YANG
Life of this patent
Estimating the term…
Abstract
This disclosure provides methods for performing full-link tracing on a transaction and native distributed databases. In an implementation, a method comprises determining a current execution stage of a transaction to be traced, locally recording span information corresponding to a span comprising the current execution stage, collecting span information in the execution stages comprised in the transaction after execution of the transaction is completed, and determining a full-link execution process of the transaction based on the collected span information.
Claims18
A computer-implemented method for performing full-link tracing on a transaction in a distributed database comprising:
- determining a current execution stage of a transaction to be traced, wherein the current execution stage comprises a current execution action in an execution process, wherein information transferred in the execution process comprises a trace ID of the transaction and span IDs, and wherein the span IDs correspond to spans of execution stages comprised in the execution process;
- locally recording span information corresponding to a span comprising the current execution stage, wherein the span has a semantic meaning determined based on a transaction execution logic in the distributed database, and each piece of span information determines a reference relationship between a corresponding span and another span in the same transaction comprising the corresponding span;
- collecting span information in the execution stages comprised in the transaction after execution of the transaction is completed;
- and
- determining a full-link execution process of the transaction based on the collected span information.
A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations for performing full-link tracing on a transaction in a distributed database, the operations comprising:
- determining a current execution stage of a transaction to be traced, wherein the current execution stage comprises a current execution action in an execution process, wherein information transferred in the execution process comprises a trace ID of the transaction and span IDs, and wherein the span IDs correspond to spans of execution stages comprised in the execution process;
- locally recording span information corresponding to a span comprising the current execution stage, wherein the span has a semantic meaning determined based on a transaction execution logic in the distributed database, and each piece of span information determines a reference relationship between a corresponding span and another span in the same transaction comprising the corresponding span;
- collecting span information in the execution stages comprised in the transaction after execution of the transaction is completed;
- and
- determining a full-link execution process of the transaction based on the collected span information.
A computer-implemented system for performing full-link tracing on a transaction in a distributed database, comprising:
- one or more computers;
- and
- one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform one or more operations comprising:
- determining a current execution stage of a transaction to be traced, wherein the current execution stage comprises a current execution action in an execution process, wherein information transferred in the execution process comprises a trace ID of the transaction and span IDs, and wherein the span IDs correspond to spans of execution stages comprised in the execution process;
- locally recording span information corresponding to a span comprising the current execution stage, wherein the span has a semantic meaning determined based on a transaction execution logic in the distributed database, and each piece of span information determines a reference relationship between a corresponding span and another span in the same transaction comprising the corresponding span;
- collecting span information in the execution stages comprised in the transaction after execution of the transaction is completed;
- and
- determining a full-link execution process of the transaction based on the collected span information.
Dependencies are inferred from the claim text.