opentelemetry-instrumentation-groq
OpenTelemetry Groq instrumentation
What it is and what it does
This package is an OpenTelemetry instrumentation plugin that hooks into the official Groq Python SDK to automatically capture traces of LLM API calls. When installed and initialized, it intercepts Groq SDK requests and logs prompts, completions, and other metadata as OpenTelemetry span attributes, giving you visibility into how your LLM application behaves in production.
By default, it logs full prompt and completion content to help with debugging and quality evaluation. However, you can disable content logging by setting the TRACELOOP_TRACE_CONTENT environment variable to false if you need to protect sensitive user data or reduce trace size. The instrumentation integrates with the standard OpenTelemetry ecosystem, so traces can be exported to any compatible backend (Jaeger, Datadog, etc.) for centralized monitoring.
Use it for:
- Debug LLM application behavior by inspecting actual prompts and completions sent to Groq in production traces.
- Monitor token usage and latency of Groq API calls across your application using OpenTelemetry-compatible observability platforms.
- Evaluate output quality by correlating prompts with completions in distributed traces for performance analysis.
- Audit LLM interactions for compliance by capturing structured span data without modifying application code.
- Troubleshoot integration issues between your application and Groq by examining instrumented request/response cycles.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Automatically captures traces of Groq SDK API calls, logging prompts, completions, and metadata to OpenTelemetry spans for observability and debugging of LLM applications.
Yes, if you use the Groq SDK and need observability. The package is actively maintained, has no known vulnerabilities, and integrates seamlessly with OpenTelemetry. The privacy control (TRACELOOP_TRACE_CONTENT) makes it suitable for production use. Install it if you want automatic LLM tracing without manual instrumentation code.
Install
opentelemetry-instrumentation-groq on PyPI
pip
pip install opentelemetry-instrumentation-groquv
uv add opentelemetry-instrumentation-groqpoetry
poetry add opentelemetry-instrumentation-groqInstalling opentelemetry-instrumentation-groq
Before you install
Low friction: pure Python wheel with four stable OpenTelemetry runtime dependencies. Actively maintained with a recent release (4 days old) and no known vulnerabilities.
License in practice
Apache-2.0 permissive license allows free use, modification, and distribution in both open and proprietary projects without copyleft obligations.
Quickstart
pip install opentelemetry-instrumentation-groq
from opentelemetry.instrumentation.groq import GroqInstrumentor
GroqInstrumentor().instrument()
Requires Python 3.10 or later; Groq SDK must be installed separately for instrumentation to function.
Verify before relying
- Whether the instrumentation works with all Groq SDK versions or has version constraints beyond what the fact sheet states
- Performance overhead of tracing on high-volume LLM applications
- Whether sensitive data redaction beyond the TRACELOOP_TRACE_CONTENT flag is supported
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<4,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions-ai, opentelemetry-semantic-conventions |
| Maintenance | actively maintained — 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,858,863/month — #2,858 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: opentelemetry_instrumentation_groq-0.62.3-py3-none-any.whl
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-alephalphaAutomatically captures and traces calls to…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-openaiCaptures traces of OpenAI API calls (prompts,…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-watsonxAutomatically captures and traces IBM Watsonx…
permissive · top 5,000 on PyPI
openfeature-hooks-opentelemetryAutomatically captures feature flag evaluations…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-sagemakerAutomatically captures traces of Amazon…
permissive · top 5,000 on PyPI
raindrop-aiInstrument LLM applications with event tracking…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-anthropicAdds OpenTelemetry tracing to Anthropic API…
permissive · top 5,000 on PyPI
langwatchLangWatch is a Python SDK for instrumenting and…
permissive · top 15,000 on PyPI
traceloop-sdkTraceloop SDK instruments LLM applications to…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-litellmAdds OpenTelemetry tracing to LiteLLM,…
permissive · top 15,000 on PyPI