Files
Riccardo Magliocchetti b35be0d73e Silence some pylint4 warnings (#4272)
* pylint: use unnecessary-dunder-call instead of E1101

Since pylint 4 now raises a different error code

* opentelemetry-instrumentation-sqlite3: fix pylint warnings

Possibly using variable 'root_span' before assignment (possibly-used-before-assignment)
Possibly using variable 'child_span' before assignment (possibly-used-before-assignment)

* opentelemetry-instrumentation-botocore: silence a bunch of pylint warnings

In the form of
Possibly using variable '<var>' before assignment (possibly-used-before-assignment)

* opentelemetry-instrumentation-redis: remove useless return spotted by pylint

* opentelemetry-instrumentation-fastapi: silence some pylint warnings

E0102: function already defined line 2034 (function-redefined)

* opentelemetry-instrumentation-google-genai: fix pylint warnings

Assisted by Cursor.

* opentelemetry-instrumentation-openai-v2: fix pylint 4 errors

Assisted by Cursor

* opentelemetry-instrumentation-elasticsearch: fix pylint 4 errors

Assisted by Cursor.

* opentelemetry-instrumentation-pika: fix pylint 4 errors

Assisted by cursor.

* opentelemetry-instrumentation-starlette: fix pylint 4 errors

* opentelemetry-instrumentation: fix pylint 4 errors

Assisted by Cursor.

* opentelemetry-util-http: fix pylint 4 errors
2026-03-12 10:07:32 +00:00
..

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>`_