opentelemetry-instrumentation-anthropic


Nameopentelemetry-instrumentation-anthropic JSON
Version 0.44.1 PyPI version JSON
download
home_pageNone
SummaryOpenTelemetry Anthropic instrumentation
upload_time2025-08-04 08:39:56
maintainerNone
docs_urlNone
authorGal Kleinman
requires_python<4,>=3.9
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # OpenTelemetry Anthropic Instrumentation

<a href="https://pypi.org/project/opentelemetry-instrumentation-anthropic/">
    <img src="https://badge.fury.io/py/opentelemetry-instrumentation-anthropic.svg">
</a>

This library allows tracing Anthropic prompts and completions sent with the official [Anthropic library](https://github.com/anthropics/anthropic-sdk-python).

## Installation

```bash
pip install opentelemetry-instrumentation-anthropic
```

## Example usage

```python
from opentelemetry.instrumentation.anthropic import AnthropicInstrumentor

AnthropicInstrumentor().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-anthropic",
    "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/f7/50/4f083f3a6eb89ec7be5b56b7399839a066aefcfb9e95e69bf8f7d12135cc/opentelemetry_instrumentation_anthropic-0.44.1.tar.gz",
    "platform": null,
    "description": "# OpenTelemetry Anthropic Instrumentation\n\n<a href=\"https://pypi.org/project/opentelemetry-instrumentation-anthropic/\">\n    <img src=\"https://badge.fury.io/py/opentelemetry-instrumentation-anthropic.svg\">\n</a>\n\nThis library allows tracing Anthropic prompts and completions sent with the official [Anthropic library](https://github.com/anthropics/anthropic-sdk-python).\n\n## Installation\n\n```bash\npip install opentelemetry-instrumentation-anthropic\n```\n\n## Example usage\n\n```python\nfrom opentelemetry.instrumentation.anthropic import AnthropicInstrumentor\n\nAnthropicInstrumentor().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 Anthropic instrumentation",
    "version": "0.44.1",
    "project_urls": {
        "Repository": "https://github.com/traceloop/openllmetry/tree/main/packages/opentelemetry-instrumentation-anthropic"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "198d05ce308a2dfbe8417acf9026a313072085c88b77ac4b343866d81761e638",
                "md5": "2d4bbd8777f8f36d5f67c1bcadee6629",
                "sha256": "d81f440353c62df473892d0ab966a37eee422f0badb47db336b66e33d5972a7b"
            },
            "downloads": -1,
            "filename": "opentelemetry_instrumentation_anthropic-0.44.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2d4bbd8777f8f36d5f67c1bcadee6629",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4,>=3.9",
            "size": 16225,
            "upload_time": "2025-08-04T08:39:18",
            "upload_time_iso_8601": "2025-08-04T08:39:18.813878Z",
            "url": "https://files.pythonhosted.org/packages/19/8d/05ce308a2dfbe8417acf9026a313072085c88b77ac4b343866d81761e638/opentelemetry_instrumentation_anthropic-0.44.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "f7504f083f3a6eb89ec7be5b56b7399839a066aefcfb9e95e69bf8f7d12135cc",
                "md5": "071984a94b3265f5f3662cb2a110f81a",
                "sha256": "21e1daeba0c43806a523b71d89c23fdb76d823759c4811292f93b7abda996c90"
            },
            "downloads": -1,
            "filename": "opentelemetry_instrumentation_anthropic-0.44.1.tar.gz",
            "has_sig": false,
            "md5_digest": "071984a94b3265f5f3662cb2a110f81a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4,>=3.9",
            "size": 12676,
            "upload_time": "2025-08-04T08:39:56",
            "upload_time_iso_8601": "2025-08-04T08:39:56.741196Z",
            "url": "https://files.pythonhosted.org/packages/f7/50/4f083f3a6eb89ec7be5b56b7399839a066aefcfb9e95e69bf8f7d12135cc/opentelemetry_instrumentation_anthropic-0.44.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-04 08:39:56",
    "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-anthropic"
}
        
Elapsed time: 1.62167s