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.
Runtime Wiring
In normal application code, telemetry is usually driven by runtime events rather than manualopenRoot() calls.
The pattern is:
- create one shared event dispatcher
- create one shared
Telemetryinstance - create the projectors for the runtimes you use
- attach them through
RuntimeEventBridge - build your runtime objects with the same event dispatcher
Minimal Wiring Example
$events into the runtime objects that should emit telemetry.
Which Projectors To Add
Add only the projectors for the packages you actually use:- agents:
AgentsTelemetryProjector - agent control:
AgentCtrlTelemetryProjector - instructor:
InstructorTelemetryProjector - polyglot:
PolyglotTelemetryProjector - http client:
HttpClientTelemetryProjector
Practical Examples
The examples directory has working end-to-end setups:examples/D05_AgentTroubleshooting/TelemetryLangfuse/run.phpexamples/D05_AgentTroubleshooting/TelemetryLogfire/run.phpexamples/D05_AgentTroubleshooting/SubagentTelemetryLangfuse/run.phpexamples/D05_AgentTroubleshooting/SubagentTelemetryLogfire/run.php