Groq Tracing

arize-tutorialsgroqtracingLLMPython

arize logo
Docs | GitHub | Community

Tracing with Groq

This guide demonstrates how to use Arize for monitoring and debugging your LLM using Traces and Spans. You can read more about LLM tracing here. In this tutorial, you will use opentelemetry and openinference to instrument our application in order to send traces to Arize.

â„šī¸ This notebook requires:

  • A Groq API key
  • An Arize Space & API Key

Step 1: Install Dependencies 📚

Let's get the notebook setup with dependencies.

[ ]

Step 2: Get your API Keys

Copy the Arize API_KEY and SPACE_ID from your Space Settings page (shown below) to the variables in the cell below.

[ ]

Step 3. Add our tracing code

We will be using the arize-otel package to register the URL and authentication parameters to send to Arize using OpenTelemetry. You can see what's under the hood by looking here.

[ ]

Step 4: Run your LLM application

Let's test our app by asking Groq to write a haiku.

[ ]

Great! Our application works!

Step 5: Log into Arize and explore your application traces 🚀

Log into your Arize account, and look for the project with the same project_name.