LlamaIndex
Native callback support is on the roadmap. The pattern below works today with any LlamaIndex query engine.
Pattern
Wrap query engine calls in a telemetry execution. UseMODEL_INVOCATION for the LLM call and TOOL_CALL for retrievers.
Coming soon
LlamaIndexCallbackHandlerfor automatic instrumentation- Per-node retrieval metadata (chunks, scores)