opentelemetry-instrumentation-aiohttp-client 0.43b0__py3-none-any.whl → 0.45b0__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.
@@ -94,8 +94,8 @@ from opentelemetry.instrumentation.aiohttp_client.package import _instruments
94
94
  from opentelemetry.instrumentation.aiohttp_client.version import __version__
95
95
  from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
96
96
  from opentelemetry.instrumentation.utils import (
97
- _SUPPRESS_INSTRUMENTATION_KEY,
98
97
  http_status_to_status_code,
98
+ is_instrumentation_enabled,
99
99
  unwrap,
100
100
  )
101
101
  from opentelemetry.propagate import inject
@@ -179,7 +179,7 @@ def create_trace_config(
179
179
  trace_config_ctx: types.SimpleNamespace,
180
180
  params: aiohttp.TraceRequestStartParams,
181
181
  ):
182
- if context_api.get_value(_SUPPRESS_INSTRUMENTATION_KEY):
182
+ if not is_instrumentation_enabled():
183
183
  trace_config_ctx.span = None
184
184
  return
185
185
 
@@ -282,7 +282,7 @@ def _instrument(
282
282
 
283
283
  # pylint:disable=unused-argument
284
284
  def instrumented_init(wrapped, instance, args, kwargs):
285
- if context_api.get_value(_SUPPRESS_INSTRUMENTATION_KEY):
285
+ if not is_instrumentation_enabled():
286
286
  return wrapped(*args, **kwargs)
287
287
 
288
288
  client_trace_configs = list(kwargs.get("trace_configs") or [])
@@ -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.43b0"
15
+ __version__ = "0.45b0"
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: opentelemetry-instrumentation-aiohttp-client
3
- Version: 0.43b0
3
+ Version: 0.45b0
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>
@@ -11,22 +11,18 @@ Classifier: Intended Audience :: Developers
11
11
  Classifier: License :: OSI Approved :: Apache Software License
12
12
  Classifier: Programming Language :: Python
13
13
  Classifier: Programming Language :: Python :: 3
14
- Classifier: Programming Language :: Python :: 3.7
15
14
  Classifier: Programming Language :: Python :: 3.8
16
15
  Classifier: Programming Language :: Python :: 3.9
17
16
  Classifier: Programming Language :: Python :: 3.10
18
17
  Classifier: Programming Language :: Python :: 3.11
19
- Requires-Python: >=3.7
18
+ Requires-Python: >=3.8
20
19
  Requires-Dist: opentelemetry-api~=1.12
21
- Requires-Dist: opentelemetry-instrumentation==0.43b0
22
- Requires-Dist: opentelemetry-semantic-conventions==0.43b0
23
- Requires-Dist: opentelemetry-util-http==0.43b0
20
+ Requires-Dist: opentelemetry-instrumentation==0.45b0
21
+ Requires-Dist: opentelemetry-semantic-conventions==0.45b0
22
+ Requires-Dist: opentelemetry-util-http==0.45b0
24
23
  Requires-Dist: wrapt<2.0.0,>=1.0.0
25
24
  Provides-Extra: instruments
26
25
  Requires-Dist: aiohttp~=3.0; extra == 'instruments'
27
- Provides-Extra: test
28
- Requires-Dist: http-server-mock; extra == 'test'
29
- Requires-Dist: opentelemetry-instrumentation-aiohttp-client[instruments]; extra == 'test'
30
26
  Description-Content-Type: text/x-rst
31
27
 
32
28
  OpenTelemetry aiohttp client Integration
@@ -0,0 +1,8 @@
1
+ opentelemetry/instrumentation/aiohttp_client/__init__.py,sha256=ZFvlrUbyi-U1Im22G5OFDPskcefx4L64LPdC-CVY1HI,12373
2
+ opentelemetry/instrumentation/aiohttp_client/package.py,sha256=p_Q78PKsyRJD-WRU8p_peiPrGxilvGbfeZce0IiMkII,623
3
+ opentelemetry/instrumentation/aiohttp_client/version.py,sha256=vv0py8bKgUbHzXtCKt_8UwGVakRERRK1GBW_Oo201mM,610
4
+ opentelemetry_instrumentation_aiohttp_client-0.45b0.dist-info/METADATA,sha256=k6E9uAGY_Lm5M9JOgTDnVitBnzQ0MBeS5oyc8g8_7QU,2027
5
+ opentelemetry_instrumentation_aiohttp_client-0.45b0.dist-info/WHEEL,sha256=uNdcs2TADwSd5pVaP0Z_kcjcvvTUklh2S7bxZMF8Uj0,87
6
+ opentelemetry_instrumentation_aiohttp_client-0.45b0.dist-info/entry_points.txt,sha256=RyZ5eVO-u3V_rwvLrhMM0ABs_WYZDqcagmMKwDPtmwE,117
7
+ opentelemetry_instrumentation_aiohttp_client-0.45b0.dist-info/licenses/LICENSE,sha256=h8jwqxShIeVkc8vOo9ynxGYW16f4fVPxLhZKZs0H5U8,11350
8
+ opentelemetry_instrumentation_aiohttp_client-0.45b0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.17.1
2
+ Generator: hatchling 1.22.4
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,8 +0,0 @@
1
- opentelemetry/instrumentation/aiohttp_client/__init__.py,sha256=cgtM_bLi3MloTiBlkAlnI8wC6hB_A448cKF8t5hpir8,12416
2
- opentelemetry/instrumentation/aiohttp_client/package.py,sha256=p_Q78PKsyRJD-WRU8p_peiPrGxilvGbfeZce0IiMkII,623
3
- opentelemetry/instrumentation/aiohttp_client/version.py,sha256=r7MgCIHjr2qxb_NIkEmH4iIopzei-3HzuLIHMll7eP4,610
4
- opentelemetry_instrumentation_aiohttp_client-0.43b0.dist-info/METADATA,sha256=UBVHeQgo0Dra33e_GRX3WVTkCR32qq9wzt6jr0NhWlI,2237
5
- opentelemetry_instrumentation_aiohttp_client-0.43b0.dist-info/WHEEL,sha256=KGYbc1zXlYddvwxnNty23BeaKzh7YuoSIvIMO4jEhvw,87
6
- opentelemetry_instrumentation_aiohttp_client-0.43b0.dist-info/entry_points.txt,sha256=RyZ5eVO-u3V_rwvLrhMM0ABs_WYZDqcagmMKwDPtmwE,117
7
- opentelemetry_instrumentation_aiohttp_client-0.43b0.dist-info/licenses/LICENSE,sha256=h8jwqxShIeVkc8vOo9ynxGYW16f4fVPxLhZKZs0H5U8,11350
8
- opentelemetry_instrumentation_aiohttp_client-0.43b0.dist-info/RECORD,,