## TL;DR

To see token counts for DSPy calls in Phoenix, add OpenAIInstrumentor().instrument() in addition to DSPyInstrumentor; the OpenAI spans carry the usage data Phoenix displays. Keep both instrumentors active in the same process so the traces link up.

## Steps

1. To see token counts for DSPy calls in Phoenix, add OpenAIInstrumentor().instrument() in addition to DSPyInstrumentor; the OpenAI spans carry the usage data Phoenix displays.

2. Keep both instrumentors active in the same process so the traces link up.

## When to use

You are seeing this: The maintainer re-labeled it from bug to enhancement, acknowledging token counts should ideally work without the extra instrumentation. Use this skill when you run into "Phoenix missing DSPy token counts: add OpenAIInstrumentor alongside".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
