opentelemetry-instrumentation-aiohttp-client 0.56b0__tar.gz → 0.58b0__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.4
2
2
  Name: opentelemetry-instrumentation-aiohttp-client
3
- Version: 0.56b0
3
+ Version: 0.58b0
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
  Project-URL: Repository, https://github.com/open-telemetry/opentelemetry-python-contrib
@@ -19,9 +19,9 @@ Classifier: Programming Language :: Python :: 3.12
19
19
  Classifier: Programming Language :: Python :: 3.13
20
20
  Requires-Python: >=3.9
21
21
  Requires-Dist: opentelemetry-api~=1.12
22
- Requires-Dist: opentelemetry-instrumentation==0.56b0
23
- Requires-Dist: opentelemetry-semantic-conventions==0.56b0
24
- Requires-Dist: opentelemetry-util-http==0.56b0
22
+ Requires-Dist: opentelemetry-instrumentation==0.58b0
23
+ Requires-Dist: opentelemetry-semantic-conventions==0.58b0
24
+ Requires-Dist: opentelemetry-util-http==0.58b0
25
25
  Requires-Dist: wrapt<2.0.0,>=1.0.0
26
26
  Provides-Extra: instruments
27
27
  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.56b0",
30
- "opentelemetry-semantic-conventions == 0.56b0",
31
- "opentelemetry-util-http == 0.56b0",
29
+ "opentelemetry-instrumentation == 0.58b0",
30
+ "opentelemetry-semantic-conventions == 0.58b0",
31
+ "opentelemetry-util-http == 0.58b0",
32
32
  "wrapt >= 1.0.0, < 2.0.0",
33
33
  ]
34
34
 
@@ -273,7 +273,8 @@ def create_trace_config(
273
273
 
274
274
  def _end_trace(trace_config_ctx: types.SimpleNamespace):
275
275
  elapsed_time = max(default_timer() - trace_config_ctx.start_time, 0)
276
- context_api.detach(trace_config_ctx.token)
276
+ if trace_config_ctx.token:
277
+ context_api.detach(trace_config_ctx.token)
277
278
  trace_config_ctx.span.end()
278
279
 
279
280
  if trace_config_ctx.duration_histogram_old is not None:
@@ -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.56b0"
15
+ __version__ = "0.58b0"