Skip to main content

Overview

This example shows the Logfire connection inline, using the actual Logfire environment variables already present in this repository. It wires the existing event bus into the telemetry projectors and then runs one small structured extraction. Key concepts:
  • explicit LogfireConfig / LogfireExporter setup
  • RuntimeEventBridge: attaches telemetry projection to the runtime event bus
  • LogfireExporter: sends canonical telemetry to Logfire via OTLP/HTTP
  • InstructorTelemetryProjector: maps structured output lifecycle events
  • PolyglotTelemetryProjector: captures the nested LLM inference spans
  • HttpClientTelemetryProjector: captures outbound HTTP spans

Example