rebrandly-otel 0.1.13__tar.gz → 0.1.14__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.

Potentially problematic release.


This version of rebrandly-otel might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rebrandly_otel
3
- Version: 0.1.13
3
+ Version: 0.1.14
4
4
  Summary: Python OTEL wrapper by Rebrandly
5
5
  Home-page: https://github.com/rebrandly/rebrandly-otel-python
6
6
  Author: Antonio Romano
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rebrandly_otel
3
- Version: 0.1.13
3
+ Version: 0.1.14
4
4
  Summary: Python OTEL wrapper by Rebrandly
5
5
  Home-page: https://github.com/rebrandly/rebrandly-otel-python
6
6
  Author: Antonio Romano
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setuptools.setup(
7
7
  name="rebrandly_otel",
8
- version="0.1.13",
8
+ version="0.1.14",
9
9
  author="Antonio Romano",
10
10
  author_email="antonio@rebrandly.com",
11
11
  description="Python OTEL wrapper by Rebrandly",
@@ -3,7 +3,6 @@ from .rebrandly_otel import *
3
3
 
4
4
  # Explicitly define what's available
5
5
  __all__ = [
6
- 'otel',
7
6
  'lambda_handler',
8
7
  'span',
9
8
  'aws_message_span',
@@ -142,6 +142,9 @@ class RebrandlyOTEL:
142
142
  for key, value in first_record['MessageAttributes'].items():
143
143
  if isinstance(value, dict) and 'StringValue' in value:
144
144
  carrier[key] = value['StringValue']
145
+ if ('messageAttributes' in first_record and 'traceparent' in first_record['messageAttributes']
146
+ and 'stringValue' in first_record['messageAttributes']['traceparent']):
147
+ carrier['traceparent'] = first_record['messageAttributes']['traceparent']['stringValue']
145
148
 
146
149
  # Extract from SNS
147
150
  elif 'Sns' in first_record and 'MessageAttributes' in first_record['Sns']:
File without changes