Installation
Quick Start
Coding Agent Prompt (Cursor, Claude Code)
Coding Agent Prompt (Cursor, Claude Code)
Copy this prompt into your coding agent (tested with Cursor and Claude Code using Sonnet 4.5):
Basic Configuration
Tracing
Custom (Recommended)
Using Simforge::Traceable to Link Spans
Include Simforge::Traceable in a class, declare the trace function key once with simforge_function, then use simforge_span above each method:
Using simforge_span with Explicit Key
For a single span with an explicit trace function key:
Automatic Nesting
Spans nest automatically based on call stack:Span Options
Parameters:method_name(required): Symbol of the method to wraptrace_function_key(optional): Override class-levelsimforge_functionname(optional): Display name. Defaults to method nametype(optional): Span type. Defaults to"custom"
Error Handling
Errors are captured in the span and re-raised:Flushing Traces
at_exit hook.
Wrapping Third-Party Methods
UseSimforge::Traceable.wrap to trace methods on external classes: