-
Notifications
You must be signed in to change notification settings - Fork 165
Closed
Labels
Description
Where do you use Phoenix
Self-hosted
What version of Phoenix are you using?
12.14.2
What happened?
total tokens (and hence cost) is 0
the relevant snippet
exporter = OTLPSpanExporter(
endpoint=f"{os.getenv('PHOENIX_COLLECTOR_ENDPOINT')}/v1/traces",
headers={"Authorization": f"Bearer {os.getenv('PHOENIX_API_KEY')}"},
)
tracer_provider.add_span_processor(SimpleSpanProcessor(exporter))
LangChainInstrumentor().instrument(tracer_provider=tracer_provider)
I even tried adding OpenAIInstrumentor but that too does not log token count etc. My model is gpt-4.1 (which maps to gpt-4.1-2025-04-14)
Additional information
openinference-instrumentation-langchain==0.1.55
dosubot
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
✅ Done
Status
Done