# OpenTelemetry OpenAI Agents Instrumentation
<a href="https://pypi.org/project/opentelemetry-instrumentation-openai-agents/">
<img src="https://badge.fury.io/py/opentelemetry-instrumentation-openai-agents.svg">
</a>
This library enables tracing of agentic workflows implemented using the [OpenAI Agents framework](https://github.com/openai/openai-agents-python), allowing visibility into agent reasoning, tool usage, and decision-making steps.
## Installation
```bash
pip install opentelemetry-instrumentation-openai-agents
```
## Example usage
```python
from opentelemetry.instrumentation.openai_agents import OpenAIAgentsInstrumentor
OpenAIAgentsInstrumentor().instrument()
```
## Privacy
**By default, this instrumentation logs prompts, completions, and embeddings to span attributes**. This gives you a clear visibility into how your LLM application is working, and can make it easy to debug and evaluate the quality of the outputs.
However, you may want to disable this logging for privacy reasons, as they may contain highly sensitive data from your users. You may also simply want to reduce the size of your traces.
To disable logging, set the `TRACELOOP_TRACE_CONTENT` environment variable to `false`.
```bash
TRACELOOP_TRACE_CONTENT=false
```
Raw data
{
"_id": null,
"home_page": null,
"name": "opentelemetry-instrumentation-openai-agents",
"maintainer": null,
"docs_url": null,
"requires_python": "<4,>=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Gal Kleinman",
"author_email": "gal@traceloop.com",
"download_url": "https://files.pythonhosted.org/packages/ec/53/70b391067839ce8da4472defe67a2da25685b075bdc103db32a1ad77b6fb/opentelemetry_instrumentation_openai_agents-0.44.1.tar.gz",
"platform": null,
"description": "# OpenTelemetry OpenAI Agents Instrumentation\n\n<a href=\"https://pypi.org/project/opentelemetry-instrumentation-openai-agents/\">\n <img src=\"https://badge.fury.io/py/opentelemetry-instrumentation-openai-agents.svg\">\n</a>\n\nThis library enables tracing of agentic workflows implemented using the [OpenAI Agents framework](https://github.com/openai/openai-agents-python), allowing visibility into agent reasoning, tool usage, and decision-making steps.\n\n## Installation\n\n```bash\npip install opentelemetry-instrumentation-openai-agents\n```\n\n## Example usage\n\n```python\nfrom opentelemetry.instrumentation.openai_agents import OpenAIAgentsInstrumentor\n\nOpenAIAgentsInstrumentor().instrument()\n```\n\n## Privacy\n\n**By default, this instrumentation logs prompts, completions, and embeddings to span attributes**. This gives you a clear visibility into how your LLM application is working, and can make it easy to debug and evaluate the quality of the outputs.\n\nHowever, you may want to disable this logging for privacy reasons, as they may contain highly sensitive data from your users. You may also simply want to reduce the size of your traces.\n\nTo disable logging, set the `TRACELOOP_TRACE_CONTENT` environment variable to `false`.\n\n```bash\nTRACELOOP_TRACE_CONTENT=false\n```\n\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "OpenTelemetry OpenAI Agents instrumentation",
"version": "0.44.1",
"project_urls": {
"Repository": "https://github.com/traceloop/openllmetry/tree/main/packages/opentelemetry-instrumentation-openai-agents"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "e00a0805c33576c779134621a30bb618ea23e9455680e8eeca8311557a083d00",
"md5": "122681d20b6a716bfdb0585fed26992e",
"sha256": "ef30ea873d689b8f125279f66b49a0e546bceb300c3e51223dffb7e7650cb2cb"
},
"downloads": -1,
"filename": "opentelemetry_instrumentation_openai_agents-0.44.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "122681d20b6a716bfdb0585fed26992e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4,>=3.9",
"size": 7593,
"upload_time": "2025-08-04T08:39:41",
"upload_time_iso_8601": "2025-08-04T08:39:41.847839Z",
"url": "https://files.pythonhosted.org/packages/e0/0a/0805c33576c779134621a30bb618ea23e9455680e8eeca8311557a083d00/opentelemetry_instrumentation_openai_agents-0.44.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "ec5370b391067839ce8da4472defe67a2da25685b075bdc103db32a1ad77b6fb",
"md5": "47762e94c0d2cc9e96c24b18750fbe12",
"sha256": "b435bef26c611feabb62ae0ad9feeb824075408c11affe667705db74704c3929"
},
"downloads": -1,
"filename": "opentelemetry_instrumentation_openai_agents-0.44.1.tar.gz",
"has_sig": false,
"md5_digest": "47762e94c0d2cc9e96c24b18750fbe12",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4,>=3.9",
"size": 6809,
"upload_time": "2025-08-04T08:40:12",
"upload_time_iso_8601": "2025-08-04T08:40:12.739269Z",
"url": "https://files.pythonhosted.org/packages/ec/53/70b391067839ce8da4472defe67a2da25685b075bdc103db32a1ad77b6fb/opentelemetry_instrumentation_openai_agents-0.44.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-04 08:40:12",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "traceloop",
"github_project": "openllmetry",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "opentelemetry-instrumentation-openai-agents"
}