opentelemetry-instrumentation-botocore 0.42b0__tar.gz → 0.43b0__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_botocore-0.42b0 → opentelemetry_instrumentation_botocore-0.43b0}/PKG-INFO +5 -4
- {opentelemetry_instrumentation_botocore-0.42b0 → opentelemetry_instrumentation_botocore-0.43b0}/pyproject.toml +4 -3
- {opentelemetry_instrumentation_botocore-0.42b0 → opentelemetry_instrumentation_botocore-0.43b0}/src/opentelemetry/instrumentation/botocore/extensions/dynamodb.py +1 -0
- {opentelemetry_instrumentation_botocore-0.42b0 → opentelemetry_instrumentation_botocore-0.43b0}/src/opentelemetry/instrumentation/botocore/extensions/lmbd.py +2 -2
- {opentelemetry_instrumentation_botocore-0.42b0 → opentelemetry_instrumentation_botocore-0.43b0}/src/opentelemetry/instrumentation/botocore/extensions/sns.py +5 -3
- {opentelemetry_instrumentation_botocore-0.42b0 → opentelemetry_instrumentation_botocore-0.43b0}/src/opentelemetry/instrumentation/botocore/extensions/types.py +8 -10
- {opentelemetry_instrumentation_botocore-0.42b0 → opentelemetry_instrumentation_botocore-0.43b0}/src/opentelemetry/instrumentation/botocore/version.py +1 -1
- {opentelemetry_instrumentation_botocore-0.42b0 → opentelemetry_instrumentation_botocore-0.43b0}/tests/test_botocore_sns.py +2 -2
- {opentelemetry_instrumentation_botocore-0.42b0 → opentelemetry_instrumentation_botocore-0.43b0}/.gitignore +0 -0
- {opentelemetry_instrumentation_botocore-0.42b0 → opentelemetry_instrumentation_botocore-0.43b0}/LICENSE +0 -0
- {opentelemetry_instrumentation_botocore-0.42b0 → opentelemetry_instrumentation_botocore-0.43b0}/README.rst +0 -0
- {opentelemetry_instrumentation_botocore-0.42b0 → opentelemetry_instrumentation_botocore-0.43b0}/src/opentelemetry/instrumentation/botocore/__init__.py +0 -0
- {opentelemetry_instrumentation_botocore-0.42b0 → opentelemetry_instrumentation_botocore-0.43b0}/src/opentelemetry/instrumentation/botocore/extensions/__init__.py +0 -0
- {opentelemetry_instrumentation_botocore-0.42b0 → opentelemetry_instrumentation_botocore-0.43b0}/src/opentelemetry/instrumentation/botocore/extensions/_messaging.py +0 -0
- {opentelemetry_instrumentation_botocore-0.42b0 → opentelemetry_instrumentation_botocore-0.43b0}/src/opentelemetry/instrumentation/botocore/extensions/sqs.py +0 -0
- {opentelemetry_instrumentation_botocore-0.42b0 → opentelemetry_instrumentation_botocore-0.43b0}/src/opentelemetry/instrumentation/botocore/package.py +0 -0
- {opentelemetry_instrumentation_botocore-0.42b0 → opentelemetry_instrumentation_botocore-0.43b0}/tests/__init__.py +0 -0
- {opentelemetry_instrumentation_botocore-0.42b0 → opentelemetry_instrumentation_botocore-0.43b0}/tests/test_botocore_dynamodb.py +0 -0
- {opentelemetry_instrumentation_botocore-0.42b0 → opentelemetry_instrumentation_botocore-0.43b0}/tests/test_botocore_instrumentation.py +0 -0
- {opentelemetry_instrumentation_botocore-0.42b0 → opentelemetry_instrumentation_botocore-0.43b0}/tests/test_botocore_lambda.py +0 -0
- {opentelemetry_instrumentation_botocore-0.42b0 → opentelemetry_instrumentation_botocore-0.43b0}/tests/test_botocore_messaging.py +0 -0
- {opentelemetry_instrumentation_botocore-0.42b0 → opentelemetry_instrumentation_botocore-0.43b0}/tests/test_botocore_sqs.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: opentelemetry-instrumentation-botocore
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.43b0
|
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>
|
@@ -18,16 +18,17 @@ Classifier: Programming Language :: Python :: 3.10
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.11
|
19
19
|
Requires-Python: >=3.7
|
20
20
|
Requires-Dist: opentelemetry-api~=1.12
|
21
|
-
Requires-Dist: opentelemetry-instrumentation==0.
|
21
|
+
Requires-Dist: opentelemetry-instrumentation==0.43b0
|
22
22
|
Requires-Dist: opentelemetry-propagator-aws-xray==1.0.1
|
23
|
-
Requires-Dist: opentelemetry-semantic-conventions==0.
|
23
|
+
Requires-Dist: opentelemetry-semantic-conventions==0.43b0
|
24
24
|
Provides-Extra: instruments
|
25
25
|
Requires-Dist: botocore~=1.0; extra == 'instruments'
|
26
26
|
Provides-Extra: test
|
27
|
+
Requires-Dist: botocore<1.31.81,~=1.0; extra == 'test'
|
27
28
|
Requires-Dist: markupsafe==2.0.1; extra == 'test'
|
28
29
|
Requires-Dist: moto[all]~=2.2.6; extra == 'test'
|
29
30
|
Requires-Dist: opentelemetry-instrumentation-botocore[instruments]; extra == 'test'
|
30
|
-
Requires-Dist: opentelemetry-test-utils==0.
|
31
|
+
Requires-Dist: opentelemetry-test-utils==0.43b0; extra == 'test'
|
31
32
|
Description-Content-Type: text/x-rst
|
32
33
|
|
33
34
|
OpenTelemetry Botocore Tracing
|
@@ -26,8 +26,8 @@ classifiers = [
|
|
26
26
|
]
|
27
27
|
dependencies = [
|
28
28
|
"opentelemetry-api ~= 1.12",
|
29
|
-
"opentelemetry-instrumentation == 0.
|
30
|
-
"opentelemetry-semantic-conventions == 0.
|
29
|
+
"opentelemetry-instrumentation == 0.43b0",
|
30
|
+
"opentelemetry-semantic-conventions == 0.43b0",
|
31
31
|
"opentelemetry-propagator-aws-xray == 1.0.1",
|
32
32
|
]
|
33
33
|
|
@@ -38,8 +38,9 @@ instruments = [
|
|
38
38
|
test = [
|
39
39
|
"opentelemetry-instrumentation-botocore[instruments]",
|
40
40
|
"markupsafe==2.0.1",
|
41
|
+
"botocore ~= 1.0, < 1.31.81",
|
41
42
|
"moto[all] ~= 2.2.6",
|
42
|
-
"opentelemetry-test-utils == 0.
|
43
|
+
"opentelemetry-test-utils == 0.43b0",
|
43
44
|
]
|
44
45
|
|
45
46
|
[project.entry-points.opentelemetry_instrumentor]
|
@@ -99,13 +99,13 @@ class _OpInvoke(_LambdaOperation):
|
|
99
99
|
# Lambda extension
|
100
100
|
################################################################################
|
101
101
|
|
102
|
-
_OPERATION_MAPPING = {
|
102
|
+
_OPERATION_MAPPING: Dict[str, _LambdaOperation] = {
|
103
103
|
op.operation_name(): op
|
104
104
|
for op in globals().values()
|
105
105
|
if inspect.isclass(op)
|
106
106
|
and issubclass(op, _LambdaOperation)
|
107
107
|
and not inspect.isabstract(op)
|
108
|
-
}
|
108
|
+
}
|
109
109
|
|
110
110
|
|
111
111
|
class _LambdaExtension(_AwsSdkExtension):
|
@@ -82,7 +82,9 @@ class _OpPublish(_SnsOperation):
|
|
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
|
85
|
-
attributes["messaging.destination.name"] = cls._extract_input_arn(
|
85
|
+
attributes["messaging.destination.name"] = cls._extract_input_arn(
|
86
|
+
call_context
|
87
|
+
)
|
86
88
|
call_context.span_name = (
|
87
89
|
f"{'phone_number' if is_phone_number else destination_name} send"
|
88
90
|
)
|
@@ -141,13 +143,13 @@ class _OpPublishBatch(_OpPublish):
|
|
141
143
|
# SNS extension
|
142
144
|
################################################################################
|
143
145
|
|
144
|
-
_OPERATION_MAPPING = {
|
146
|
+
_OPERATION_MAPPING: Dict[str, _SnsOperation] = {
|
145
147
|
op.operation_name(): op
|
146
148
|
for op in globals().values()
|
147
149
|
if inspect.isclass(op)
|
148
150
|
and issubclass(op, _SnsOperation)
|
149
151
|
and not inspect.isabstract(op)
|
150
|
-
}
|
152
|
+
}
|
151
153
|
|
152
154
|
|
153
155
|
class _SnsExtension(_AwsSdkExtension):
|
@@ -57,23 +57,21 @@ class _AwsSdkCallContext:
|
|
57
57
|
boto_meta = client.meta
|
58
58
|
service_model = boto_meta.service_model
|
59
59
|
|
60
|
-
self.service = service_model.service_name.lower()
|
61
|
-
self.operation = operation
|
62
|
-
self.params = params
|
60
|
+
self.service = service_model.service_name.lower()
|
61
|
+
self.operation = operation
|
62
|
+
self.params = params
|
63
63
|
|
64
64
|
# 'operation' and 'service' are essential for instrumentation.
|
65
65
|
# for all other attributes we extract them defensively. All of them should
|
66
66
|
# usually exist unless some future botocore version moved things.
|
67
|
-
self.region = self._get_attr(
|
68
|
-
|
69
|
-
) # type: Optional[str]
|
70
|
-
self.endpoint_url = self._get_attr(
|
67
|
+
self.region: Optional[str] = self._get_attr(boto_meta, "region_name")
|
68
|
+
self.endpoint_url: Optional[str] = self._get_attr(
|
71
69
|
boto_meta, "endpoint_url"
|
72
|
-
)
|
70
|
+
)
|
73
71
|
|
74
|
-
self.api_version = self._get_attr(
|
72
|
+
self.api_version: Optional[str] = self._get_attr(
|
75
73
|
service_model, "api_version"
|
76
|
-
)
|
74
|
+
)
|
77
75
|
# name of the service in proper casing
|
78
76
|
self.service_id = str(
|
79
77
|
self._get_attr(service_model, "service_id", self.service)
|
@@ -122,7 +122,7 @@ class TestSnsExtension(TestBase):
|
|
122
122
|
target_arn,
|
123
123
|
# TODO: Use SpanAttributes.MESSAGING_DESTINATION_NAME when
|
124
124
|
# opentelemetry-semantic-conventions 0.42b0 is released
|
125
|
-
span.attributes["messaging.destination.name"]
|
125
|
+
span.attributes["messaging.destination.name"],
|
126
126
|
)
|
127
127
|
|
128
128
|
@mock_sns
|
@@ -194,7 +194,7 @@ class TestSnsExtension(TestBase):
|
|
194
194
|
topic_arn,
|
195
195
|
# TODO: Use SpanAttributes.MESSAGING_DESTINATION_NAME when
|
196
196
|
# opentelemetry-semantic-conventions 0.42b0 is released
|
197
|
-
span.attributes["messaging.destination.name"]
|
197
|
+
span.attributes["messaging.destination.name"],
|
198
198
|
)
|
199
199
|
|
200
200
|
self.assert_injected_span(message1_attrs, span)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|