opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentati...
OpenTelemetry Bot 546f0b0e69
[release/v1.32.x-0.53bx] Prepare release 1.32.0/0.53b0 (#3412)
* Prepare release 1.32.0/0.53b0

* Move CORE_REPO_SHA to opentelemetrybot/prepare-release-1.32.0-0.53b0

---------

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-04-10 13:04:58 +00:00
..
examples/bedrock-runtime/zero-code botocore: add bedrock genai user events and lazy initialize tracers and event loggers (#3258) 2025-02-13 10:08:24 +01:00
src/opentelemetry/instrumentation/botocore [release/v1.32.x-0.53bx] Prepare release 1.32.0/0.53b0 (#3412) 2025-04-10 13:04:58 +00:00
tests botocore: handle tool calls with Amazon nova with Bedrock InvokeModel* APIs (#3385) 2025-03-31 08:53:15 +00:00
LICENSE fix: revert modifications to Apache license (#2429) 2024-04-22 13:23:38 -05:00
README.rst botocore: add some more content to the README (#3395) 2025-04-01 12:44:09 +00:00
pyproject.toml [release/v1.32.x-0.53bx] Prepare release 1.32.0/0.53b0 (#3412) 2025-04-10 13:04:58 +00:00
test-requirements-0.txt Basic instrumentation for Bedrock runtime Converse api (#3161) 2025-01-20 09:56:09 +01:00
test-requirements-1.txt Basic instrumentation for Bedrock runtime Converse api (#3161) 2025-01-20 09:56:09 +01:00

README.rst

OpenTelemetry Botocore Tracing
==============================

|pypi|

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

This library allows tracing requests made by the Botocore library.

Extensions
----------

The instrumentation supports creating extensions for AWS services for enriching what is collected. We have extensions
for the following AWS services:

- Bedrock Runtime
- DynamoDB
- Lambda
- SNS
- SQS

Bedrock Runtime
***************

This extension implements the GenAI semantic conventions for the following API calls:

- Converse
- ConverseStream
- InvokeModel
- InvokeModelWithResponseStream

For the Converse and ConverseStream APIs tracing, events and metrics are implemented.

For the InvokeModel and InvokeModelWithResponseStream APIs tracing, events and metrics implemented only for a subset of
the available models, namely:

- Amazon Titan models
- Amazon Nova models
- Anthropic Claude

Tool calls with InvokeModel and InvokeModelWithResponseStream APIs are supported with:

- Amazon Nova models
- Anthropic Claude 3+

If you don't have an application using Bedrock APIs yet, try our `zero-code examples <examples/bedrock-runtime/zero-code>`_.

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

::

    pip install opentelemetry-instrumentation-botocore


References
----------

* `OpenTelemetry Botocore Tracing <https://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/botocore/botocore.html>`_
* `OpenTelemetry Project <https://opentelemetry.io/>`_
* `OpenTelemetry Python Examples <https://github.com/open-telemetry/opentelemetry-python/tree/main/docs/examples>`_