Skip to content

TraceFile

The top-level .tracy file structure written by the file backend (§3.6.1).

---
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
runtime: python
version: 2.0.0
NameTypeDescription
runtimestringLanguage/runtime name (e.g., ‘python’, ‘csharp’, ‘javascript’)
versionstringPrompty library version
traceTraceSpanThe root trace span

The following types are composed within TraceFile: