opentelemetry-instrumentation-botocore 0.45b0__py3-none-any.whl → 0.46b0__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.
@@ -51,7 +51,7 @@ tracer_provider (TracerProvider) - an optional tracer provider
51
51
  request_hook (Callable) - a function with extra user-defined logic to be performed before performing the request
52
52
  this function signature is: def request_hook(span: Span, service_name: str, operation_name: str, api_params: dict) -> None
53
53
  response_hook (Callable) - a function with extra user-defined logic to be performed after performing the request
54
- this function signature is: def request_hook(span: Span, service_name: str, operation_name: str, result: dict) -> None
54
+ this function signature is: def response_hook(span: Span, service_name: str, operation_name: str, result: dict) -> None
55
55
 
56
56
  for example:
57
57
 
@@ -62,9 +62,9 @@ class _OpInvoke(_LambdaOperation):
62
62
  cls, call_context: _AwsSdkCallContext, attributes: _AttributeMapT
63
63
  ):
64
64
  attributes[SpanAttributes.FAAS_INVOKED_PROVIDER] = "aws"
65
- attributes[
66
- SpanAttributes.FAAS_INVOKED_NAME
67
- ] = cls._parse_function_name(call_context)
65
+ attributes[SpanAttributes.FAAS_INVOKED_NAME] = (
66
+ cls._parse_function_name(call_context)
67
+ )
68
68
  attributes[SpanAttributes.FAAS_INVOKED_REGION] = call_context.region
69
69
 
70
70
  @classmethod
@@ -76,9 +76,9 @@ class _OpPublish(_SnsOperation):
76
76
  destination_name, is_phone_number = cls._extract_destination_name(
77
77
  call_context
78
78
  )
79
- attributes[
80
- SpanAttributes.MESSAGING_DESTINATION_KIND
81
- ] = MessagingDestinationKindValues.TOPIC.value
79
+ attributes[SpanAttributes.MESSAGING_DESTINATION_KIND] = (
80
+ MessagingDestinationKindValues.TOPIC.value
81
+ )
82
82
  attributes[SpanAttributes.MESSAGING_DESTINATION] = destination_name
83
83
 
84
84
  # TODO: Use SpanAttributes.MESSAGING_DESTINATION_NAME when opentelemetry-semantic-conventions 0.42b0 is released
@@ -35,9 +35,9 @@ class _SqsExtension(_AwsSdkExtension):
35
35
  attributes[SpanAttributes.MESSAGING_SYSTEM] = "aws.sqs"
36
36
  attributes[SpanAttributes.MESSAGING_URL] = queue_url
37
37
  try:
38
- attributes[
39
- SpanAttributes.MESSAGING_DESTINATION
40
- ] = queue_url.split("/")[-1]
38
+ attributes[SpanAttributes.MESSAGING_DESTINATION] = (
39
+ queue_url.split("/")[-1]
40
+ )
41
41
  except IndexError:
42
42
  _logger.error(
43
43
  "Could not extract messaging destination from '%s'",
@@ -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.45b0"
15
+ __version__ = "0.46b0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: opentelemetry-instrumentation-botocore
3
- Version: 0.45b0
3
+ Version: 0.46b0
4
4
  Summary: OpenTelemetry Botocore instrumentation
5
5
  Project-URL: Homepage, https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-botocore
6
6
  Author-email: OpenTelemetry Authors <cncf-opentelemetry-contributors@lists.cncf.io>
@@ -17,9 +17,9 @@ Classifier: Programming Language :: Python :: 3.10
17
17
  Classifier: Programming Language :: Python :: 3.11
18
18
  Requires-Python: >=3.8
19
19
  Requires-Dist: opentelemetry-api~=1.12
20
- Requires-Dist: opentelemetry-instrumentation==0.45b0
20
+ Requires-Dist: opentelemetry-instrumentation==0.46b0
21
21
  Requires-Dist: opentelemetry-propagator-aws-xray==1.0.1
22
- Requires-Dist: opentelemetry-semantic-conventions==0.45b0
22
+ Requires-Dist: opentelemetry-semantic-conventions==0.46b0
23
23
  Provides-Extra: instruments
24
24
  Requires-Dist: botocore~=1.0; extra == 'instruments'
25
25
  Description-Content-Type: text/x-rst
@@ -0,0 +1,15 @@
1
+ opentelemetry/instrumentation/botocore/__init__.py,sha256=GWNEAzPLwvBUhXGw0B6iAWKBgC9MjM5zHdHGquvEYcU,10223
2
+ opentelemetry/instrumentation/botocore/package.py,sha256=6xvfRpU_C3wlSO6pto7MhGtkPoCHDEiRO_Fh4DiC_50,622
3
+ opentelemetry/instrumentation/botocore/version.py,sha256=asa7q2ly73330-K1Q7vujpvZk7hfhasEZUzSFDPu1N8,608
4
+ opentelemetry/instrumentation/botocore/extensions/__init__.py,sha256=nQGZ4Clq4d2eIeDK6v0IqQVJ6SIIBpzm57DJGXgL9TA,1665
5
+ opentelemetry/instrumentation/botocore/extensions/_messaging.py,sha256=VqNJGE-6fEA-96q97tlKXL3Iros8H9tBxFoy_i2LP1Y,1635
6
+ opentelemetry/instrumentation/botocore/extensions/dynamodb.py,sha256=BA-zoY-Cr878t5Q3pYS3r1PKAd4FFBtdTCXZLoC3tLE,13554
7
+ opentelemetry/instrumentation/botocore/extensions/lmbd.py,sha256=Fm4_Pq9Wl2BPsHBo6iTJtof4QZTvG1XRBLrf6t-JoWM,4153
8
+ opentelemetry/instrumentation/botocore/extensions/sns.py,sha256=Y0P3r_9msd33UFUFeitS01QBF4Aivqo4yPIDDy-qeLw,5360
9
+ opentelemetry/instrumentation/botocore/extensions/sqs.py,sha256=2-ifTjtMQXayKQ-fEdxS_R7ckPXl7Givq3JESFz-Ou0,2791
10
+ opentelemetry/instrumentation/botocore/extensions/types.py,sha256=JWSXOP3KC6WRXbWG4EQczDDjaYhpq2HzTisUZn9e0m4,4857
11
+ opentelemetry_instrumentation_botocore-0.46b0.dist-info/METADATA,sha256=QD8UWk6a9Npj6WHHwZdMK__pxbDbHIMouIt82B-K-OM,1934
12
+ opentelemetry_instrumentation_botocore-0.46b0.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
13
+ opentelemetry_instrumentation_botocore-0.46b0.dist-info/entry_points.txt,sha256=v5hzQbZMJ61JuhBNq5jHYAapvv3C_486h9CTqxlkUTM,100
14
+ opentelemetry_instrumentation_botocore-0.46b0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
15
+ opentelemetry_instrumentation_botocore-0.46b0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.22.4
2
+ Generator: hatchling 1.24.2
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -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 The OpenTelemetry Authors
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.
@@ -1,15 +0,0 @@
1
- opentelemetry/instrumentation/botocore/__init__.py,sha256=qdbOH9jYnG-ZZ9dpVnsVSJuaoTDcto3okjd950mhvzA,10222
2
- opentelemetry/instrumentation/botocore/package.py,sha256=6xvfRpU_C3wlSO6pto7MhGtkPoCHDEiRO_Fh4DiC_50,622
3
- opentelemetry/instrumentation/botocore/version.py,sha256=HyCKkZGb11xsSYPWI9CHcfWAYU5IqDVTDpTmCwMvfu0,608
4
- opentelemetry/instrumentation/botocore/extensions/__init__.py,sha256=nQGZ4Clq4d2eIeDK6v0IqQVJ6SIIBpzm57DJGXgL9TA,1665
5
- opentelemetry/instrumentation/botocore/extensions/_messaging.py,sha256=VqNJGE-6fEA-96q97tlKXL3Iros8H9tBxFoy_i2LP1Y,1635
6
- opentelemetry/instrumentation/botocore/extensions/dynamodb.py,sha256=BA-zoY-Cr878t5Q3pYS3r1PKAd4FFBtdTCXZLoC3tLE,13554
7
- opentelemetry/instrumentation/botocore/extensions/lmbd.py,sha256=Lk3AoGiMNfYiHbfp16A5UXYgpoOgo0sNuuEYJN3QDSo,4151
8
- opentelemetry/instrumentation/botocore/extensions/sns.py,sha256=zlvw25Z8UfaXyangAu_2nVvXHRGGPWrd0WbmJTk3cRM,5358
9
- opentelemetry/instrumentation/botocore/extensions/sqs.py,sha256=F0spQ9P4HmhW4pwldFoAIC9mt9Q7Rad3-0h9lGE0Nac,2789
10
- opentelemetry/instrumentation/botocore/extensions/types.py,sha256=JWSXOP3KC6WRXbWG4EQczDDjaYhpq2HzTisUZn9e0m4,4857
11
- opentelemetry_instrumentation_botocore-0.45b0.dist-info/METADATA,sha256=R_rl_F4l0EJSSRoU96PptbxbDbP_sUuSMr150Pyz9MA,1934
12
- opentelemetry_instrumentation_botocore-0.45b0.dist-info/WHEEL,sha256=uNdcs2TADwSd5pVaP0Z_kcjcvvTUklh2S7bxZMF8Uj0,87
13
- opentelemetry_instrumentation_botocore-0.45b0.dist-info/entry_points.txt,sha256=v5hzQbZMJ61JuhBNq5jHYAapvv3C_486h9CTqxlkUTM,100
14
- opentelemetry_instrumentation_botocore-0.45b0.dist-info/licenses/LICENSE,sha256=h8jwqxShIeVkc8vOo9ynxGYW16f4fVPxLhZKZs0H5U8,11350
15
- opentelemetry_instrumentation_botocore-0.45b0.dist-info/RECORD,,