opentelemetry-instrumentation-botocore 0.45b0__tar.gz → 0.46b0__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.
Files changed (22) hide show
  1. {opentelemetry_instrumentation_botocore-0.45b0 → opentelemetry_instrumentation_botocore-0.46b0}/LICENSE +1 -1
  2. {opentelemetry_instrumentation_botocore-0.45b0 → opentelemetry_instrumentation_botocore-0.46b0}/PKG-INFO +3 -3
  3. {opentelemetry_instrumentation_botocore-0.45b0 → opentelemetry_instrumentation_botocore-0.46b0}/pyproject.toml +2 -2
  4. {opentelemetry_instrumentation_botocore-0.45b0 → opentelemetry_instrumentation_botocore-0.46b0}/src/opentelemetry/instrumentation/botocore/__init__.py +1 -1
  5. {opentelemetry_instrumentation_botocore-0.45b0 → opentelemetry_instrumentation_botocore-0.46b0}/src/opentelemetry/instrumentation/botocore/extensions/lmbd.py +3 -3
  6. {opentelemetry_instrumentation_botocore-0.45b0 → opentelemetry_instrumentation_botocore-0.46b0}/src/opentelemetry/instrumentation/botocore/extensions/sns.py +3 -3
  7. {opentelemetry_instrumentation_botocore-0.45b0 → opentelemetry_instrumentation_botocore-0.46b0}/src/opentelemetry/instrumentation/botocore/extensions/sqs.py +3 -3
  8. {opentelemetry_instrumentation_botocore-0.45b0 → opentelemetry_instrumentation_botocore-0.46b0}/src/opentelemetry/instrumentation/botocore/version.py +1 -1
  9. {opentelemetry_instrumentation_botocore-0.45b0 → opentelemetry_instrumentation_botocore-0.46b0}/tests/test_botocore_dynamodb.py +6 -6
  10. {opentelemetry_instrumentation_botocore-0.45b0 → opentelemetry_instrumentation_botocore-0.46b0}/.gitignore +0 -0
  11. {opentelemetry_instrumentation_botocore-0.45b0 → opentelemetry_instrumentation_botocore-0.46b0}/README.rst +0 -0
  12. {opentelemetry_instrumentation_botocore-0.45b0 → opentelemetry_instrumentation_botocore-0.46b0}/src/opentelemetry/instrumentation/botocore/extensions/__init__.py +0 -0
  13. {opentelemetry_instrumentation_botocore-0.45b0 → opentelemetry_instrumentation_botocore-0.46b0}/src/opentelemetry/instrumentation/botocore/extensions/_messaging.py +0 -0
  14. {opentelemetry_instrumentation_botocore-0.45b0 → opentelemetry_instrumentation_botocore-0.46b0}/src/opentelemetry/instrumentation/botocore/extensions/dynamodb.py +0 -0
  15. {opentelemetry_instrumentation_botocore-0.45b0 → opentelemetry_instrumentation_botocore-0.46b0}/src/opentelemetry/instrumentation/botocore/extensions/types.py +0 -0
  16. {opentelemetry_instrumentation_botocore-0.45b0 → opentelemetry_instrumentation_botocore-0.46b0}/src/opentelemetry/instrumentation/botocore/package.py +0 -0
  17. {opentelemetry_instrumentation_botocore-0.45b0 → opentelemetry_instrumentation_botocore-0.46b0}/tests/__init__.py +0 -0
  18. {opentelemetry_instrumentation_botocore-0.45b0 → opentelemetry_instrumentation_botocore-0.46b0}/tests/test_botocore_instrumentation.py +0 -0
  19. {opentelemetry_instrumentation_botocore-0.45b0 → opentelemetry_instrumentation_botocore-0.46b0}/tests/test_botocore_lambda.py +0 -0
  20. {opentelemetry_instrumentation_botocore-0.45b0 → opentelemetry_instrumentation_botocore-0.46b0}/tests/test_botocore_messaging.py +0 -0
  21. {opentelemetry_instrumentation_botocore-0.45b0 → opentelemetry_instrumentation_botocore-0.46b0}/tests/test_botocore_sns.py +0 -0
  22. {opentelemetry_instrumentation_botocore-0.45b0 → opentelemetry_instrumentation_botocore-0.46b0}/tests/test_botocore_sqs.py +0 -0
@@ -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,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
@@ -25,8 +25,8 @@ classifiers = [
25
25
  ]
26
26
  dependencies = [
27
27
  "opentelemetry-api ~= 1.12",
28
- "opentelemetry-instrumentation == 0.45b0",
29
- "opentelemetry-semantic-conventions == 0.45b0",
28
+ "opentelemetry-instrumentation == 0.46b0",
29
+ "opentelemetry-semantic-conventions == 0.46b0",
30
30
  "opentelemetry-propagator-aws-xray == 1.0.1",
31
31
  ]
32
32
 
@@ -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"
@@ -324,14 +324,14 @@ class TestDynamoDbExtension(TestBase):
324
324
  Key={"id": {"S": "1"}},
325
325
  ConsistentRead=True,
326
326
  AttributesToGet=["id"],
327
- ProjectionExpression="1,2",
327
+ ProjectionExpression="PE",
328
328
  ReturnConsumedCapacity="TOTAL",
329
329
  )
330
330
 
331
331
  span = self.assert_span("GetItem")
332
332
  self.assert_table_names(span, self.default_table_name)
333
333
  self.assert_consistent_read(span, True)
334
- self.assert_projection(span, "1,2")
334
+ self.assert_projection(span, "PE")
335
335
  self.assert_consumed_capacity(span, self.default_table_name)
336
336
 
337
337
  @mock_dynamodb2
@@ -390,7 +390,7 @@ class TestDynamoDbExtension(TestBase):
390
390
  }
391
391
  },
392
392
  ScanIndexForward=True,
393
- ProjectionExpression="1,2",
393
+ ProjectionExpression="PE",
394
394
  ReturnConsumedCapacity="TOTAL",
395
395
  )
396
396
 
@@ -403,7 +403,7 @@ class TestDynamoDbExtension(TestBase):
403
403
  self.assert_consistent_read(span, True)
404
404
  self.assert_index_name(span, "lsi")
405
405
  self.assert_limit(span, 42)
406
- self.assert_projection(span, "1,2")
406
+ self.assert_projection(span, "PE")
407
407
  self.assert_select(span, "ALL_ATTRIBUTES")
408
408
  self.assert_consumed_capacity(span, self.default_table_name)
409
409
 
@@ -419,7 +419,7 @@ class TestDynamoDbExtension(TestBase):
419
419
  Select="ALL_ATTRIBUTES",
420
420
  TotalSegments=17,
421
421
  Segment=21,
422
- ProjectionExpression="1,2",
422
+ ProjectionExpression="PE",
423
423
  ConsistentRead=True,
424
424
  ReturnConsumedCapacity="TOTAL",
425
425
  )
@@ -440,7 +440,7 @@ class TestDynamoDbExtension(TestBase):
440
440
  self.assert_consistent_read(span, True)
441
441
  self.assert_index_name(span, "lsi")
442
442
  self.assert_limit(span, 42)
443
- self.assert_projection(span, "1,2")
443
+ self.assert_projection(span, "PE")
444
444
  self.assert_select(span, "ALL_ATTRIBUTES")
445
445
  self.assert_consumed_capacity(span, self.default_table_name)
446
446