opentelemetry-instrumentation-aiopg 0.49b2__py3-none-any.whl → 0.51b0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,22 +25,39 @@ Usage
25
25
 
26
26
  import aiopg
27
27
  from opentelemetry.instrumentation.aiopg import AiopgInstrumentor
28
-
28
+ # Call instrument() to wrap all database connections
29
29
  AiopgInstrumentor().instrument()
30
30
 
31
31
  cnx = await aiopg.connect(database='Database')
32
32
  cursor = await cnx.cursor()
33
+ await cursor.execute("CREATE TABLE IF NOT EXISTS test (testField INTEGER)")
33
34
  await cursor.execute("INSERT INTO test (testField) VALUES (123)")
34
35
  cursor.close()
35
36
  cnx.close()
36
37
 
37
38
  pool = await aiopg.create_pool(database='Database')
39
+
38
40
  cnx = await pool.acquire()
39
41
  cursor = await cnx.cursor()
42
+ await cursor.execute("CREATE TABLE IF NOT EXISTS test (testField INTEGER)")
40
43
  await cursor.execute("INSERT INTO test (testField) VALUES (123)")
41
44
  cursor.close()
42
45
  cnx.close()
43
46
 
47
+ .. code-block:: python
48
+
49
+ import aiopg
50
+ from opentelemetry.instrumentation.aiopg import AiopgInstrumentor
51
+
52
+ # Alternatively, use instrument_connection for an individual connection
53
+ cnx = await aiopg.connect(database='Database')
54
+ instrumented_cnx = AiopgInstrumentor().instrument_connection(cnx)
55
+ cursor = await instrumented_cnx.cursor()
56
+ await cursor.execute("CREATE TABLE IF NOT EXISTS test (testField INTEGER)")
57
+ await cursor.execute("INSERT INTO test (testField) VALUES (123)")
58
+ cursor.close()
59
+ instrumented_cnx.close()
60
+
44
61
  API
45
62
  ---
46
63
  """
@@ -12,4 +12,4 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- __version__ = "0.49b2"
15
+ __version__ = "0.51b0"
@@ -1,10 +1,12 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: opentelemetry-instrumentation-aiopg
3
- Version: 0.49b2
3
+ Version: 0.51b0
4
4
  Summary: OpenTelemetry aiopg instrumentation
5
5
  Project-URL: Homepage, https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-aiopg
6
+ Project-URL: Repository, https://github.com/open-telemetry/opentelemetry-python-contrib
6
7
  Author-email: OpenTelemetry Authors <cncf-opentelemetry-contributors@lists.cncf.io>
7
- License: Apache-2.0
8
+ License-Expression: Apache-2.0
9
+ License-File: LICENSE
8
10
  Classifier: Development Status :: 4 - Beta
9
11
  Classifier: Intended Audience :: Developers
10
12
  Classifier: License :: OSI Approved :: Apache Software License
@@ -15,10 +17,11 @@ Classifier: Programming Language :: Python :: 3.9
15
17
  Classifier: Programming Language :: Python :: 3.10
16
18
  Classifier: Programming Language :: Python :: 3.11
17
19
  Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
18
21
  Requires-Python: >=3.8
19
22
  Requires-Dist: opentelemetry-api~=1.12
20
- Requires-Dist: opentelemetry-instrumentation-dbapi==0.49b2
21
- Requires-Dist: opentelemetry-instrumentation==0.49b2
23
+ Requires-Dist: opentelemetry-instrumentation-dbapi==0.51b0
24
+ Requires-Dist: opentelemetry-instrumentation==0.51b0
22
25
  Requires-Dist: wrapt<2.0.0,>=1.0.0
23
26
  Provides-Extra: instruments
24
27
  Requires-Dist: aiopg<2.0.0,>=0.13.0; extra == 'instruments'
@@ -0,0 +1,10 @@
1
+ opentelemetry/instrumentation/aiopg/__init__.py,sha256=O5ECp_NueV0B50_tyMN6ZQV7-6Qw7xvmSeInFodTqCc,4583
2
+ opentelemetry/instrumentation/aiopg/aiopg_integration.py,sha256=mas7jYoDlWWVwqnYxQIvCgyTh6pLaLMPv_Sy1x3BaQU,6978
3
+ opentelemetry/instrumentation/aiopg/package.py,sha256=OGraZWgxyPDf8s5Y-BpSoKrywu3MqFoLWqRc05ZgrIc,631
4
+ opentelemetry/instrumentation/aiopg/version.py,sha256=xU54GoF0aIm8WYGdGIfcg45s1dMdG2m5bpBCICAKNEo,608
5
+ opentelemetry/instrumentation/aiopg/wrappers.py,sha256=-OT6qIx4xWdbDYO4_9LqKMIqXaZ6ZTDXA6OxNTB2nPE,6853
6
+ opentelemetry_instrumentation_aiopg-0.51b0.dist-info/METADATA,sha256=x_EqH5kFew8nEVHLo79GRjB5pf1v7TBGoyo8BuDT3H8,2034
7
+ opentelemetry_instrumentation_aiopg-0.51b0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
+ opentelemetry_instrumentation_aiopg-0.51b0.dist-info/entry_points.txt,sha256=ibfH43ba08FnWqx_AR7yHVoHigG8bsPkgBGs4vKMLAg,91
9
+ opentelemetry_instrumentation_aiopg-0.51b0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
10
+ opentelemetry_instrumentation_aiopg-0.51b0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.26.3
2
+ Generator: hatchling 1.27.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,10 +0,0 @@
1
- opentelemetry/instrumentation/aiopg/__init__.py,sha256=cYySDUITmf98mOG61IzbDiSmOoXKAhVHTujBvxJXqVE,3813
2
- opentelemetry/instrumentation/aiopg/aiopg_integration.py,sha256=mas7jYoDlWWVwqnYxQIvCgyTh6pLaLMPv_Sy1x3BaQU,6978
3
- opentelemetry/instrumentation/aiopg/package.py,sha256=OGraZWgxyPDf8s5Y-BpSoKrywu3MqFoLWqRc05ZgrIc,631
4
- opentelemetry/instrumentation/aiopg/version.py,sha256=Axuk6SG7SQR82yhUQ-qxl0W3DkT1XdtfwpB4A3PI6pM,608
5
- opentelemetry/instrumentation/aiopg/wrappers.py,sha256=-OT6qIx4xWdbDYO4_9LqKMIqXaZ6ZTDXA6OxNTB2nPE,6853
6
- opentelemetry_instrumentation_aiopg-0.49b2.dist-info/METADATA,sha256=HpQXhksU-YSKpbiAqU5eTsF0bry59xuPDYLzqcu2wII,1862
7
- opentelemetry_instrumentation_aiopg-0.49b2.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
8
- opentelemetry_instrumentation_aiopg-0.49b2.dist-info/entry_points.txt,sha256=ibfH43ba08FnWqx_AR7yHVoHigG8bsPkgBGs4vKMLAg,91
9
- opentelemetry_instrumentation_aiopg-0.49b2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
10
- opentelemetry_instrumentation_aiopg-0.49b2.dist-info/RECORD,,