TraceFile
The top-level .tracy file structure written by the file backend (§3.6.1).
Class Diagram
Section titled “Class Diagram”---
title: TraceFile
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class TraceFile {
+string runtime
+string version
+TraceSpan trace
}
class TraceSpan {
+string name
+TraceTime __time
+string signature
+dictionary inputs
+unknown output
+string error
+TokenUsage __usage
+dictionary attributes
+unknown[] __frames
}
TraceFile *-- TraceSpan
Yaml Example
Section titled “Yaml Example”runtime: pythonversion: 2.0.0Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| runtime | string | Language/runtime name (e.g., ‘python’, ‘csharp’, ‘javascript’) |
| version | string | Prompty library version |
| trace | TraceSpan | The root trace span |
Composed Types
Section titled “Composed Types”The following types are composed within TraceFile: