📢 The OpenTelemetry GenAI SIG has been cooking, and we at Langtrace are thrilled to contribute to the official tracing library for OpenAI, which is now live! With this package, you can now set up tracing for your OpenAI based AI applications by simply installing the package and sending the traces to the observability tool of your choice. Just run the following pip command to install it. 𝗽𝗶𝗽 𝗶𝗻𝘀𝘁𝗮𝗹𝗹 𝗼𝗽𝗲𝗻𝘁𝗲𝗹𝗲𝗺𝗲𝘁𝗿𝘆-𝗶𝗻𝘀𝘁𝗿𝘂𝗺𝗲𝗻𝘁𝗮𝘁𝗶𝗼𝗻-𝗼𝗽𝗲𝗻𝗮𝗶-𝘃𝟮 Note that the OpenAI python package not only supports OpenAI's family of models but also other open source models and model providers such as Llama, Mistral AI, Groq, xAI etc. Huge shoutout to Ali Waleed for the contribution and Liudmila Molkova, Riccardo Magliocchetti, Leighton Chen and Adrian Cole for getting this across the finish line. While this is just a start, we are actively making progress towards coming up with semantic conventions not only for LLM clients but also for VectorDBs and Agentic frameworks. If you are a developer who is passionate about open source observability or OpenTelemetry, we encourage you to join our weekly calls to shape the future of tracing AI applications. Additional details can be found in the link in the first comment below 👇
Been giving this a go over the weekend. Works pretty well with minimal code changes when migrating from the one from trace loop. Some unexpected span attributes missing were the input and output content. Is there a reason why they were omitted?
Karthik Kalyanaraman written in Python, but I assume this will instrument any application that talks to OpenAI regardless of its runtime/language? I also assume trace/span data is limited to capturing only interaction with OpenAI APIs?
Big milestone for #opentelemetry
Huge!!!
Great work by the Gen Ai SIG!
Cofounder and CTO, Langtrace AI | OpenTelemetry Contributor
1moLinks: - https://www.langtrace.ai/blog/langtrace-contributes-to-the-official-opentelemetry-instrumentation - https://pypi.org/project/opentelemetry-instrumentation-openai-v2/ - https://github.com/lmolkova/opentelemetry-python-contrib/tree/main/instrumentation-genai/opentelemetry-instrumentation-openai-v2 - https://opentelemetry.io/docs/specs/semconv/attributes-registry/gen-ai/