Open lambopancake opened 1 month ago
Assigning to @getsentry/support for routing ⏲️
The child span needs ai.pipeline.name
set to External.openai.prompt
in this case - that's how the token usage is linked back.
Routing to @getsentry/product-owners-performance for triage ⏲️
Environment
SaaS (https://sentry.io/)
What are you trying to accomplish?
I want the "Total tokens used" to display on the columns and graph of the individual trace.
How are you getting stuck?
"Total tokens used" displays on the LLM Monitoring tab. But the total tokens does not display on the individual pipeline. I'm currently using nodeJS. The initial trace starts with a transaction
op: "ai.pipeline"
, then a child spanop:"ai.chat_completions.create.openai"
. The tokens are then displayed usingspan.setData("ai.total_tokens.used",response.usage.total_tokens);
, but only shows in the LLM Monitoring tab.Where in the product are you?
Performance
Link
No response
Version
sentry/node: 7.118.0