From b42cc84036cd1afaa12778ea35a04749279d2eec Mon Sep 17 00:00:00 2001 From: tammy-baylis-swi Date: Tue, 10 Dec 2024 15:11:34 -0800 Subject: [PATCH 1/2] Update sqlite3 instrumentor doc about explicit cursors --- .../src/opentelemetry/instrumentation/sqlite3/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/instrumentation/opentelemetry-instrumentation-sqlite3/src/opentelemetry/instrumentation/sqlite3/__init__.py b/instrumentation/opentelemetry-instrumentation-sqlite3/src/opentelemetry/instrumentation/sqlite3/__init__.py index 1ec4794e96..91dd1ceedb 100644 --- a/instrumentation/opentelemetry-instrumentation-sqlite3/src/opentelemetry/instrumentation/sqlite3/__init__.py +++ b/instrumentation/opentelemetry-instrumentation-sqlite3/src/opentelemetry/instrumentation/sqlite3/__init__.py @@ -14,7 +14,8 @@ """ SQLite instrumentation supporting `sqlite3`_, it can be enabled by -using ``SQLite3Instrumentor``. +using ``SQLite3Instrumentor``. At this time, cursor objects must +be explicitly initialized as shown below to support tracing. .. _sqlite3: https://docs.python.org/3/library/sqlite3.html From e04a47458d7ec4a58d1baaaed593236fcaba923a Mon Sep 17 00:00:00 2001 From: tammy-baylis-swi Date: Tue, 10 Dec 2024 15:13:44 -0800 Subject: [PATCH 2/2] Changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 33f83bb0ae..d4938e9fcb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ([#2816](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2816)) - `opentelemetry-instrumentation-sqlalchemy`: Fix a remaining memory leak in EngineTracer ([#3053](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3053)) +- `opentelemetry-instrumentation-sqlite3`: Update documentation on explicit cursor support of tracing + ([#3088](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3088)) ### Breaking changes