opentelemetry-instrumentation-aiohttp-client 0.48b0__tar.gz → 0.49b1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: opentelemetry-instrumentation-aiohttp-client
3
- Version: 0.48b0
3
+ Version: 0.49b1
4
4
  Summary: OpenTelemetry aiohttp client instrumentation
5
5
  Project-URL: Homepage, https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-aiohttp-client
6
6
  Author-email: OpenTelemetry Authors <cncf-opentelemetry-contributors@lists.cncf.io>
@@ -18,9 +18,9 @@ Classifier: Programming Language :: Python :: 3.11
18
18
  Classifier: Programming Language :: Python :: 3.12
19
19
  Requires-Python: >=3.8
20
20
  Requires-Dist: opentelemetry-api~=1.12
21
- Requires-Dist: opentelemetry-instrumentation==0.48b0
22
- Requires-Dist: opentelemetry-semantic-conventions==0.48b0
23
- Requires-Dist: opentelemetry-util-http==0.48b0
21
+ Requires-Dist: opentelemetry-instrumentation==0.49b1
22
+ Requires-Dist: opentelemetry-semantic-conventions==0.49b1
23
+ Requires-Dist: opentelemetry-util-http==0.49b1
24
24
  Requires-Dist: wrapt<2.0.0,>=1.0.0
25
25
  Provides-Extra: instruments
26
26
  Requires-Dist: aiohttp~=3.0; extra == 'instruments'
@@ -26,9 +26,9 @@ classifiers = [
26
26
  ]
27
27
  dependencies = [
28
28
  "opentelemetry-api ~= 1.12",
29
- "opentelemetry-instrumentation == 0.48b0",
30
- "opentelemetry-semantic-conventions == 0.48b0",
31
- "opentelemetry-util-http == 0.48b0",
29
+ "opentelemetry-instrumentation == 0.49b1",
30
+ "opentelemetry-semantic-conventions == 0.49b1",
31
+ "opentelemetry-util-http == 0.49b1",
32
32
  "wrapt >= 1.0.0, < 2.0.0",
33
33
  ]
34
34
 
@@ -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.48b0"
15
+ __version__ = "0.49b1"
@@ -24,7 +24,6 @@ import aiohttp
24
24
  import aiohttp.test_utils
25
25
  import yarl
26
26
  from http_server_mock import HttpServerMock
27
- from pkg_resources import iter_entry_points
28
27
 
29
28
  from opentelemetry import trace as trace_api
30
29
  from opentelemetry.instrumentation import aiohttp_client
@@ -47,6 +46,7 @@ from opentelemetry.semconv.attributes.url_attributes import URL_FULL
47
46
  from opentelemetry.semconv.trace import SpanAttributes
48
47
  from opentelemetry.test.test_base import TestBase
49
48
  from opentelemetry.trace import Span, StatusCode
49
+ from opentelemetry.util._importlib_metadata import entry_points
50
50
 
51
51
 
52
52
  def run_with_test_server(
@@ -71,7 +71,6 @@ def run_with_test_server(
71
71
 
72
72
 
73
73
  class TestAioHttpIntegration(TestBase):
74
-
75
74
  _test_status_codes = (
76
75
  (HTTPStatus.OK, StatusCode.UNSET),
77
76
  (HTTPStatus.TEMPORARY_REDIRECT, StatusCode.UNSET),
@@ -886,9 +885,9 @@ class TestAioHttpClientInstrumentor(TestBase):
886
885
 
887
886
  class TestLoadingAioHttpInstrumentor(unittest.TestCase):
888
887
  def test_loading_instrumentor(self):
889
- entry_points = iter_entry_points(
890
- "opentelemetry_instrumentor", "aiohttp-client"
888
+ (entry_point,) = entry_points(
889
+ group="opentelemetry_instrumentor", name="aiohttp-client"
891
890
  )
892
891
 
893
- instrumentor = next(entry_points).load()()
892
+ instrumentor = entry_point.load()()
894
893
  self.assertIsInstance(instrumentor, AioHttpClientInstrumentor)