Skip to main content

Overview

This example extends the existing agent telemetry pattern with delegated work and shows the Langfuse connection inline. The parent agent stays visible in the console, but the same event stream is also projected to Langfuse so you can inspect the full parent and subagent trace tree. Key concepts:
  • explicit LangfuseConfig / LangfuseHttpTransport / LangfuseExporter setup
  • UseSubagents: lets the parent delegate work through spawn_subagent
  • AgentDefinitionRegistry: defines the available delegated workers
  • RuntimeEventBridge: projects the full parent and child event stream into telemetry
  • AgentsTelemetryProjector: maps agent execution, tool, and subagent lifecycle events
  • UseBash: gives the delegated subagent a real tool boundary to emit nested telemetry

Example