3 ms·
Very cool. QQ: How does this differ from Langtrace (https://www.langtrace.ai https://www.langtrace.ai) / (https://github.com/Scale3-Labs/langtrace https://githu
by LLMtools 2y ago
Very cool. QQ: How does this differ from Langtrace (https://www.langtrace.ai https://www.langtrace.ai) / (https://github.com/Scale3-Labs/langtrace https://github.com/Scale3-Labs/langtrace)?
- Areibman 2y agoSome others have mentioned before, but there are actually several projects working on exactly this: https://github.com/Arize-ai/openinference https://github.com/Arize-ai/openinference https://github.com/traceloop/openllmetry https://github.com/traceloop/openllmetry https://github.com/Scale3-Labs/langtrace https://github.com/Scale3-Labs/langtrace
- patcher99 2y agoYup thats correct, Love as more tools come up! We though tried to follow the actual OpenTelemetry's Semantic Convention for GenAI, the others dont. Additionally none of these libraries "then"(Can check again) seemed to send the cost attribute which was what most of our user's mentioned, So we added that.
- kakaly0403 2y agoLangtrace core maintainer here. We capture input/output/total tokens for both streaming and non streaming across various LLM providers. For streaming we calculate using tiktoken library as OpenAI does not show that with their outputs. Cost is calculated on the client side as it may keep changing. But all you need is the cost table for the llm vendor and you can get the cost for token usage