TraceRoot automatically captures the git repository, commit, and the exact source file and line number for each instrumented function. This powers the Show Code feature in the trace viewer and enables the AI agent to jump directly from a failing trace to the relevant code.Documentation Index
Fetch the complete documentation index at: https://traceroot.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
What Gets Captured
| Attribute | Description |
|---|---|
git_repo | Repository in owner/repo format |
git_ref | Commit SHA, tag, or branch name |
source_file | File path of the decorated function |
source_line | Line number |
source_function | Function name |
git_repo and git_ref are set at the trace level. source_file, source_line, and source_function are set per span automatically by @observe.
Configuration
Git context is auto-detected from your working directory. Override it via environment variables:- Python
- TypeScript