I'm using langfuse. Latency measurement is working...
# ask-ai
b
I'm using langfuse. Latency measurement is working fine, but why are cost and tokens always zero?
t
Thanks for reaching out, RikuKomiya. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'd love to help you with this! Could you share a bit more about your setup? For example: • Are you using a specific API or integration to track cost and tokens? • Have you set up any particular settings related to measuring cost and tokens? • Have you noticed any errors or logs that might explain why these values are showing as zero? Knowing these details will really help me support you better. Looking forward to your reply!
Thanks so much for sharing the code! To help you better, could you please clarify a few things? • Are the
LANGFUSE_PUBLIC_KEY
,
LANGFUSE_SECRET_KEY
, and
LANGFUSE_HOST
environment variables properly set and accessible on your end? • Is your Langfuse setup intended to track costs and tokens, or is it mainly focused on telemetry and tracing? • Have you had a chance to check if the Langfuse API is actually receiving and processing the data needed for cost and token calculations? Understanding these details will really help us get to the bottom of the issue together.