Metadata-Version: 2.5
Name: opentelemetry-instrumentation-genai-agno
Version: 1.1b0
Summary: OpenTelemetry Agno instrumentation
Project-URL: Homepage, https://github.com/open-telemetry/opentelemetry-python-genai/tree/main/instrumentation/opentelemetry-instrumentation-genai-agno
Project-URL: Repository, https://github.com/open-telemetry/opentelemetry-python-genai
Author-email: OpenTelemetry Authors <cncf-opentelemetry-contributors@lists.cncf.io>
License-Expression: Apache-2.0
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.10
Requires-Dist: opentelemetry-api~=1.43
Requires-Dist: opentelemetry-instrumentation<1,>=0.64b0
Requires-Dist: opentelemetry-semantic-conventions<1,>=0.64b0
Requires-Dist: opentelemetry-util-genai<2,>=1.0b0
Provides-Extra: instruments
Requires-Dist: agno>=2.0.0; extra == 'instruments'
Description-Content-Type: text/x-rst

OpenTelemetry Agno Instrumentation
==================================

|pypi|

.. |pypi| image:: https://badge.fury.io/py/opentelemetry-instrumentation-genai-agno.svg
   :target: https://pypi.org/project/opentelemetry-instrumentation-genai-agno/

This library provides OpenTelemetry instrumentation for `Agno <https://github.com/agno-agi/agno>`_.

Installation
------------

::

    pip install opentelemetry-instrumentation-genai-agno

Usage
-----

.. code-block:: python

    from opentelemetry.instrumentation.genai.agno import AgnoInstrumentor

    # Instrument Agno
    AgnoInstrumentor().instrument()

Configuration
-------------

Capture Message Content
***********************

By default, prompts and completions are not captured. To capture message content, set the
environment variable ``OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT`` to one of
``NO_CONTENT``, ``SPAN_ONLY``, ``EVENT_ONLY``, or ``SPAN_AND_EVENT``:

::

    export OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=SPAN_AND_EVENT

References
----------

* `OpenTelemetry Project <https://opentelemetry.io/>`_
* `OpenTelemetry GenAI semantic conventions <https://opentelemetry.io/docs/specs/semconv/gen-ai/>`_
* `Agno Documentation <https://docs.agno.com/>`_
* `Agno GitHub Repository <https://github.com/agno-agi/agno>`_
