Documentation Index
Fetch the complete documentation index at: https://docs.instructorphp.com/llms.txt
Use this file to discover all available pages before exploring further.
Langfuse Setup
The simplest Langfuse setup uses:LangfuseConfigLangfuseHttpTransportLangfuseExporterTelemetry
Minimal Example
Environment Variables
The examples use:LANGFUSE_BASE_URLLANGFUSE_PUBLIC_KEYLANGFUSE_SECRET_KEY
Reference Example
The inline reference example is:examples/A03_Troubleshooting/TelemetryLangfuse/run.php
Agent Runtime Example
The working agent example is:examples/D05_AgentTroubleshooting/TelemetryLangfuse/run.php
- create telemetry
- create a shared event dispatcher
- attach
RuntimeEventBridge - install runtime projectors
- execute the agent
- call
$hub->flush()
Subagent Example
For nested telemetry across parent and child agents, see:examples/D05_AgentTroubleshooting/SubagentTelemetryLangfuse/run.php
Notes
- Langfuse uses the base URL and sends traces to
/api/public/otel/v1/traces - request-scoped traces can fall back to request ids as
session.id - if you get a 4xx response, check the base URL and keys first