Get a tracer for manual spans
Use the same TracerProvider to get a tracer — this ensures manual and auto spans end up in the same trace:
Add manual CHAIN and TOOL spans around your logic
Manual spans automatically nest as children of each other and alongside auto-instrumented spans:The result is a complete trace tree: CHAIN (manual) → LLM (auto) → TOOL (manual). Without the manual spans, you’d only see the LLM call — the tool execution and agent orchestration would be invisible.