Skip to main content

Overview

This example keeps the normal agent console event output and shows the Logfire connection inline. It is a practical pattern for debugging agent behavior locally while still keeping a remote execution trace. Key concepts:
  • explicit LogfireConfig / LogfireExporter setup
  • AgentEventConsoleObserver: local event visibility during execution
  • RuntimeEventBridge: turns the agent event stream into telemetry
  • AgentsTelemetryProjector: maps agent lifecycle events
  • PolyglotTelemetryProjector: captures the nested LLM work done by the agent
  • UseBash: forces the example to emit telemetry for real tool execution, not just one LLM response

Example