Flue (tracing)
Flue (tracing)
Flue is a TypeScript agent harness framework for autonomous agents and AI workflows. Use @respan/instrumentation-flue to subscribe to Flue runtime events and emit canonical Respan spans.
Set up Respan
Create an account at platform.respan.ai and grab an API key.
Run npx @respan/cli setup to set up with your coding agent.
Example projects
Setup
Initialize Respan before Flue handles activity
Register the instrumentor once during application startup, before Flue handles workflow or agent activity.
View your trace
Open the Traces page to see Flue workflow runs, agent sessions, model turns, tool executions, tasks, shell operations, compaction events, and structured logs.
Captured data
Attributes
Use Respan attributes to group Flue runs by user, trace group, or deployment.
Notes
@respan/instrumentation-fluelistens to Flue’s runtimeobserve()event stream.- Pass
runtimeModulewhen your app imports@flue/runtimedirectly. This ensures the instrumentor observes the same runtime module instance your application uses. - The TypeScript examples are deterministic and emit representative Flue workflow, agent, model-turn, tool, task, compaction, log, and recovery events without calling an external LLM provider.