Traces
Trace
A trace is the root level object that tracing creates. It represents a logical "workflow".
Source code insrc/agents/tracing/traces.py
startabstractmethod
Start the trace.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mark_as_current | bool | If true, the trace will be marked as the current trace. | False |
finishabstractmethod
Finish the trace.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
reset_current | bool | If true, the trace will be reset as the current trace. | False |
NoOpTrace
Bases:Trace
A no-op trace that will not be recorded.
Source code insrc/agents/tracing/traces.py
TraceImpl
Bases:Trace
A trace that will be recorded by the tracing library.