syntrac-opentelemetry-instrumentation-vertexai


Namesyntrac-opentelemetry-instrumentation-vertexai JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/syntracAI/syntrac/tree/main/packages/python/opentelemetry-instrumentation-vertexai
SummaryOpenTelemetry Vertex AI instrumentation
upload_time2024-04-16 14:35:39
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 VertexAI Instrumentation

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

This library allows tracing VertexAI prompts and completions sent with the official [VertexAI library](https://github.com/googleapis/python-aiplatform).

## Installation

```bash
pip install syntrac-opentelemetry-instrumentation-vertexai
```

## Example usage

```python
from syntrac_opentelemetry.instrumentation.vertexai import VertexAIInstrumentor

VertexAIInstrumentor().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 `SYNTRAC_TRACE_CONTENT` environment variable to `false`.

```bash
SYNTRAC_TRACE_CONTENT=false
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/syntracAI/syntrac/tree/main/packages/python/opentelemetry-instrumentation-vertexai",
    "name": "syntrac-opentelemetry-instrumentation-vertexai",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4,>=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Gal Kleinman",
    "author_email": "gal@syntrac.com",
    "download_url": "https://files.pythonhosted.org/packages/5e/34/01141adbcd36a74e2c570028c9ad3ea9b917d9ce65036ad8faa6495ba0db/syntrac_opentelemetry_instrumentation_vertexai-0.0.2.tar.gz",
    "platform": null,
    "description": "# OpenTelemetry VertexAI Instrumentation\n\n<a href=\"https://pypi.org/project/syntrac-opentelemetry-instrumentation-vertexai/\">\n    <img src=\"https://badge.fury.io/py/syntrac-opentelemetry-instrumentation-vertexai.svg\">\n</a>\n\nThis library allows tracing VertexAI prompts and completions sent with the official [VertexAI library](https://github.com/googleapis/python-aiplatform).\n\n## Installation\n\n```bash\npip install syntrac-opentelemetry-instrumentation-vertexai\n```\n\n## Example usage\n\n```python\nfrom syntrac_opentelemetry.instrumentation.vertexai import VertexAIInstrumentor\n\nVertexAIInstrumentor().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 `SYNTRAC_TRACE_CONTENT` environment variable to `false`.\n\n```bash\nSYNTRAC_TRACE_CONTENT=false\n```\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "OpenTelemetry Vertex AI instrumentation",
    "version": "0.0.2",
    "project_urls": {
        "Homepage": "https://github.com/syntracAI/syntrac/tree/main/packages/python/opentelemetry-instrumentation-vertexai",
        "Repository": "https://github.com/syntracAI/syntrac/tree/main/packages/python/opentelemetry-instrumentation-vertexai"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "805fba3653ae693715484e43c10b4e6e5b2a12eafbc0510f08ac689daf1341af",
                "md5": "930ca3cedec22f8f3817d544e1ffaa17",
                "sha256": "69813884357287b72657786f70d8254418c39c26be2f861b7746a9d75bffca77"
            },
            "downloads": -1,
            "filename": "syntrac_opentelemetry_instrumentation_vertexai-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "930ca3cedec22f8f3817d544e1ffaa17",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4,>=3.9",
            "size": 5039,
            "upload_time": "2024-04-16T14:35:37",
            "upload_time_iso_8601": "2024-04-16T14:35:37.850176Z",
            "url": "https://files.pythonhosted.org/packages/80/5f/ba3653ae693715484e43c10b4e6e5b2a12eafbc0510f08ac689daf1341af/syntrac_opentelemetry_instrumentation_vertexai-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5e3401141adbcd36a74e2c570028c9ad3ea9b917d9ce65036ad8faa6495ba0db",
                "md5": "ab62ac60a0874a66ac4466327a2f6729",
                "sha256": "259f4459dbe69182ba10c432a36ec9cdba2e64b5cbe6d29d378188ef74292a45"
            },
            "downloads": -1,
            "filename": "syntrac_opentelemetry_instrumentation_vertexai-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "ab62ac60a0874a66ac4466327a2f6729",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4,>=3.9",
            "size": 4019,
            "upload_time": "2024-04-16T14:35:39",
            "upload_time_iso_8601": "2024-04-16T14:35:39.124954Z",
            "url": "https://files.pythonhosted.org/packages/5e/34/01141adbcd36a74e2c570028c9ad3ea9b917d9ce65036ad8faa6495ba0db/syntrac_opentelemetry_instrumentation_vertexai-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-16 14:35:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "syntracAI",
    "github_project": "syntrac",
    "github_not_found": true,
    "lcname": "syntrac-opentelemetry-instrumentation-vertexai"
}
        
Elapsed time: 0.45151s