OperationTrace

Data object to store captured operation traces.

Description

The OperationTrace class allows you to create a data object used to store captured operation traces.

Important points

Constructors

Create new instance of OperationTrace

OperationTrace(time: datetime, source: str, component: str, operation: str, correlation_id: str, duration: float, error: ErrorDescription)

  • time: datetime - The time when operation was executed
  • source: str - source (context name)
  • component: str - name of the component
  • operation: str - name of the executed operation
  • correlation_id: str - transaction id to trace execution through call chain.
  • duration: float - duration of the operation in milliseconds
  • error: ErrorDescription - The description of the captured error

Fields

time

The time when operation was executed

time: datetime

source

The source (context name)

source: str

component

The name of the component

component: str

operation

The name of the executed operation

operation: str

correlation_id

The transaction id to trace execution through call chain.

correlation_id: str

duration

The duration of the operation in milliseconds

duration: float

error

The description of the captured error.
See also ErrorDescription, ApplicationException

error: ErrorDescription