Skip to main content

Overview

This example shows the Langfuse connection inline, using the actual Langfuse 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 LangfuseConfig / LangfuseHttpTransport / LangfuseExporter setup
  • RuntimeEventBridge: attaches telemetry projection to the runtime event bus
  • LangfuseExporter: sends canonical telemetry to Langfuse over HTTP
  • InstructorTelemetryProjector: maps structured output lifecycle events
  • PolyglotTelemetryProjector: captures the nested LLM inference spans
  • HttpClientTelemetryProjector: captures outbound HTTP spans

Example