opentelemetry-instrumentation-aiopg 0.45b0__tar.gz → 0.47b0__tar.gz
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.
- {opentelemetry_instrumentation_aiopg-0.45b0 → opentelemetry_instrumentation_aiopg-0.47b0}/.gitignore +3 -0
- {opentelemetry_instrumentation_aiopg-0.45b0 → opentelemetry_instrumentation_aiopg-0.47b0}/LICENSE +1 -1
- {opentelemetry_instrumentation_aiopg-0.45b0 → opentelemetry_instrumentation_aiopg-0.47b0}/PKG-INFO +4 -3
- {opentelemetry_instrumentation_aiopg-0.45b0 → opentelemetry_instrumentation_aiopg-0.47b0}/pyproject.toml +3 -2
- {opentelemetry_instrumentation_aiopg-0.45b0 → opentelemetry_instrumentation_aiopg-0.47b0}/src/opentelemetry/instrumentation/aiopg/version.py +1 -1
- {opentelemetry_instrumentation_aiopg-0.45b0 → opentelemetry_instrumentation_aiopg-0.47b0}/tests/test_aiopg_integration.py +7 -4
- {opentelemetry_instrumentation_aiopg-0.45b0 → opentelemetry_instrumentation_aiopg-0.47b0}/README.rst +0 -0
- {opentelemetry_instrumentation_aiopg-0.45b0 → opentelemetry_instrumentation_aiopg-0.47b0}/src/opentelemetry/instrumentation/aiopg/__init__.py +0 -0
- {opentelemetry_instrumentation_aiopg-0.45b0 → opentelemetry_instrumentation_aiopg-0.47b0}/src/opentelemetry/instrumentation/aiopg/aiopg_integration.py +0 -0
- {opentelemetry_instrumentation_aiopg-0.45b0 → opentelemetry_instrumentation_aiopg-0.47b0}/src/opentelemetry/instrumentation/aiopg/package.py +0 -0
- {opentelemetry_instrumentation_aiopg-0.45b0 → opentelemetry_instrumentation_aiopg-0.47b0}/src/opentelemetry/instrumentation/aiopg/wrappers.py +0 -0
- {opentelemetry_instrumentation_aiopg-0.45b0 → opentelemetry_instrumentation_aiopg-0.47b0}/tests/__init__.py +0 -0
{opentelemetry_instrumentation_aiopg-0.45b0 → opentelemetry_instrumentation_aiopg-0.47b0}/LICENSE
RENAMED
@@ -186,7 +186,7 @@
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
187
187
|
identification within third-party archives.
|
188
188
|
|
189
|
-
Copyright
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
190
190
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
192
192
|
you may not use this file except in compliance with the License.
|
{opentelemetry_instrumentation_aiopg-0.45b0 → opentelemetry_instrumentation_aiopg-0.47b0}/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: opentelemetry-instrumentation-aiopg
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.47b0
|
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
6
|
Author-email: OpenTelemetry Authors <cncf-opentelemetry-contributors@lists.cncf.io>
|
@@ -15,10 +15,11 @@ Classifier: Programming Language :: Python :: 3.8
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.9
|
16
16
|
Classifier: Programming Language :: Python :: 3.10
|
17
17
|
Classifier: Programming Language :: Python :: 3.11
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
18
19
|
Requires-Python: >=3.8
|
19
20
|
Requires-Dist: opentelemetry-api~=1.12
|
20
|
-
Requires-Dist: opentelemetry-instrumentation-dbapi==0.
|
21
|
-
Requires-Dist: opentelemetry-instrumentation==0.
|
21
|
+
Requires-Dist: opentelemetry-instrumentation-dbapi==0.47b0
|
22
|
+
Requires-Dist: opentelemetry-instrumentation==0.47b0
|
22
23
|
Requires-Dist: wrapt<2.0.0,>=1.0.0
|
23
24
|
Provides-Extra: instruments
|
24
25
|
Requires-Dist: aiopg<2.0.0,>=0.13.0; extra == 'instruments'
|
@@ -22,11 +22,12 @@ classifiers = [
|
|
22
22
|
"Programming Language :: Python :: 3.9",
|
23
23
|
"Programming Language :: Python :: 3.10",
|
24
24
|
"Programming Language :: Python :: 3.11",
|
25
|
+
"Programming Language :: Python :: 3.12",
|
25
26
|
]
|
26
27
|
dependencies = [
|
27
28
|
"opentelemetry-api ~= 1.12",
|
28
|
-
"opentelemetry-instrumentation == 0.
|
29
|
-
"opentelemetry-instrumentation-dbapi == 0.
|
29
|
+
"opentelemetry-instrumentation == 0.47b0",
|
30
|
+
"opentelemetry-instrumentation-dbapi == 0.47b0",
|
30
31
|
"wrapt >= 1.0.0, < 2.0.0",
|
31
32
|
]
|
32
33
|
|
@@ -17,6 +17,7 @@ from unittest import mock
|
|
17
17
|
from unittest.mock import MagicMock
|
18
18
|
|
19
19
|
import aiopg
|
20
|
+
import psycopg2
|
20
21
|
|
21
22
|
import opentelemetry.instrumentation.aiopg
|
22
23
|
from opentelemetry import trace as trace_api
|
@@ -384,7 +385,9 @@ class TestAiopgIntegration(TestBase):
|
|
384
385
|
span.attributes[SpanAttributes.DB_STATEMENT], "Test query"
|
385
386
|
)
|
386
387
|
self.assertIs(span.status.status_code, trace_api.StatusCode.ERROR)
|
387
|
-
self.assertEqual(
|
388
|
+
self.assertEqual(
|
389
|
+
span.status.description, "ProgrammingError: Test Exception"
|
390
|
+
)
|
388
391
|
|
389
392
|
def test_executemany(self):
|
390
393
|
db_integration = AiopgIntegration(self.tracer, "testcomponent")
|
@@ -570,17 +573,17 @@ class MockCursor:
|
|
570
573
|
# pylint: disable=unused-argument, no-self-use
|
571
574
|
async def execute(self, query, params=None, throw_exception=False):
|
572
575
|
if throw_exception:
|
573
|
-
raise
|
576
|
+
raise psycopg2.ProgrammingError("Test Exception")
|
574
577
|
|
575
578
|
# pylint: disable=unused-argument, no-self-use
|
576
579
|
async def executemany(self, query, params=None, throw_exception=False):
|
577
580
|
if throw_exception:
|
578
|
-
raise
|
581
|
+
raise psycopg2.ProgrammingError("Test Exception")
|
579
582
|
|
580
583
|
# pylint: disable=unused-argument, no-self-use
|
581
584
|
async def callproc(self, query, params=None, throw_exception=False):
|
582
585
|
if throw_exception:
|
583
|
-
raise
|
586
|
+
raise psycopg2.ProgrammingError("Test Exception")
|
584
587
|
|
585
588
|
def close(self):
|
586
589
|
pass
|
{opentelemetry_instrumentation_aiopg-0.45b0 → opentelemetry_instrumentation_aiopg-0.47b0}/README.rst
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|