Groq Observability & Monitoring with OpenTelemetry SigNoz has released a guide for setting up observability and monitoring for Groq using OpenTelemetry, enabling developers to export traces, logs, and metrics from Groq applications into unified dashboards. The integration allows teams to track LLM usage metrics, configure alerts, and analyze correlated telemetry data to improve reliability and user experience across AI workflows. Overview This guide walks you through setting up observability and monitoring for Groq using OpenTelemetry https://opentelemetry.io/ and exporting traces, logs, and metrics to SigNoz. With this integration, you can observe and track various metrics for your Groq applications and llm usage. Monitoring Groq in your AI applications with telemetry ensures full observability across your AI and LLM workflows. By leveraging SigNoz, you can analyze correlated traces, logs, and metrics in unified dashboards, configure alerts, and gain actionable insights to continuously improve reliability, responsiveness, and user experience. Prerequisites - A SigNoz Cloud account https://signoz.io/teams/ with an active ingestion key or Self Hosted SigNoz instance https://signoz.io/docs/install/self-host/ - Internet access to send telemetry data to SigNoz Cloud - Python 3.10+ with groq installed - For Python: pip installed for managing Python packages - A Groq API key. You can get it from Groq platform https://console.groq.com/keys Monitoring Groq For more information on getting started with Groq in your Python environment, refer to the Groq quickstart guide https://console.groq.com/docs/quickstart . No code auto-instrumentation is recommended for quick setup with minimal code changes. It's ideal when you want to get observability up and running without modifying your application code and are leveraging standard instrumentor libraries. Step 1: Install the necessary packages in your Python environment. pip install \ opentelemetry-distro \ opentelemetry-exporter-otlp \ httpx \ opentelemetry-instrumentation-httpx \ opentelemetry-instrumentation-system-metrics \ groq \ openinference-instrumentation-groq Step 2: Add Automatic Instrumentation opentelemetry-bootstrap --action=install Step 3: Configure logging level To ensure logs are properly captured and exported, configure the root logger to emit logs at the DEBUG level or higher: python import logging logging.getLogger .setLevel logging.DEBUG logging.getLogger "httpx" .setLevel logging.DEBUG This sets the minimum log level for the root logger to DEBUG, which ensures that logger.debug calls and higher severity logs INFO, WARNING, ERROR, CRITICAL are captured by the OpenTelemetry logging auto-instrumentation and sent to SigNoz. Step 4: Create an example Groq application python import os from groq import Groq from dotenv import load dotenv import logging logging.getLogger .setLevel logging.DEBUG logging.getLogger "httpx" .setLevel logging.DEBUG load dotenv client = Groq api key=os.environ.get "GROQ API KEY" , chat completion = client.chat.completions.create messages= { "role": "user", "content": "What is SigNoz?", } , model="openai/gpt-oss-20b", print chat completion.choices 0 .message.content Before running this code, ensure that you have set the environment variable GROQ API KEY with your generated Groq API key. Step 5: Run your application with auto-instrumentation Run your application with the following environment variables set. This configures OpenTelemetry to export traces, logs, and metrics to SigNoz Cloud and enables automatic log correlation: OTEL RESOURCE ATTRIBUTES="service.name=