UncountablePythonSDK 0.0.63__py3-none-any.whl → 0.0.64__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.

Potentially problematic release.


This version of UncountablePythonSDK might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: UncountablePythonSDK
3
- Version: 0.0.63
3
+ Version: 0.0.64
4
4
  Summary: Uncountable SDK
5
5
  Project-URL: Homepage, https://github.com/uncountableinc/uncountable-python-sdk
6
6
  Project-URL: Repository, https://github.com/uncountableinc/uncountable-python-sdk.git
@@ -86,7 +86,7 @@ uncountable/integration/entrypoint.py,sha256=wgOXhTzErttRjOzV4rS4psZW5qUKIa5ez89
86
86
  uncountable/integration/job.py,sha256=UrsZHWXKE2wD5M3lFKJCXvDdWj7QMDtAREKv6RBnT3Q,1548
87
87
  uncountable/integration/scan_profiles.py,sha256=3o_h5Ta8ZQEX1epWyXhtyEof0M1b7MobVG7bRKcsFuM,1166
88
88
  uncountable/integration/server.py,sha256=EhzfOyXVNOKUmS5_XN4TZVSke1n1vnGLfuDrVUlo1j4,4528
89
- uncountable/integration/telemetry.py,sha256=9vIyV_4Hfxdh-EEP5dH3SalQOSCHjXchwgSB34M2ndI,7127
89
+ uncountable/integration/telemetry.py,sha256=Hja_cfDorBL0Jm7hMlR26zynIAvODP3hv0L_yFWltVg,7237
90
90
  uncountable/integration/db/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
91
91
  uncountable/integration/db/connect.py,sha256=YtQHJ1DBGPhxKFRCfiXqohOYUceKSxMVOJ88aPI48Ug,181
92
92
  uncountable/integration/executors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -248,7 +248,7 @@ uncountable/types/api/triggers/__init__.py,sha256=gCgbynxG3jA8FQHzercKtrHKHkiIKr
248
248
  uncountable/types/api/triggers/run_trigger.py,sha256=_Rpha9nxXI3Xr17CrGDtofg4HZ81x2lt0rMZ6As0qfE,893
249
249
  uncountable/types/api/uploader/__init__.py,sha256=gCgbynxG3jA8FQHzercKtrHKHkiIKr8APdZYUniAor8,55
250
250
  uncountable/types/api/uploader/invoke_uploader.py,sha256=Rc77y5q-3R9-SNQgm8P35zKaW2D1Hbtm7PDixnOn1G0,1025
251
- UncountablePythonSDK-0.0.63.dist-info/METADATA,sha256=9z2jwZHQyzYJbxpROei8uL01JyDExcFLn3q9ovKYzu8,1993
252
- UncountablePythonSDK-0.0.63.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
253
- UncountablePythonSDK-0.0.63.dist-info/top_level.txt,sha256=1UVGjAU-6hJY9qw2iJ7nCBeEwZ793AEN5ZfKX9A1uj4,31
254
- UncountablePythonSDK-0.0.63.dist-info/RECORD,,
251
+ UncountablePythonSDK-0.0.64.dist-info/METADATA,sha256=iQZ5yMxBDndWZHGZdrQZNHf3qaU33GsvqhW6qS0rA30,1993
252
+ UncountablePythonSDK-0.0.64.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
253
+ UncountablePythonSDK-0.0.64.dist-info/top_level.txt,sha256=1UVGjAU-6hJY9qw2iJ7nCBeEwZ793AEN5ZfKX9A1uj4,31
254
+ UncountablePythonSDK-0.0.64.dist-info/RECORD,,
@@ -1,6 +1,7 @@
1
1
  import functools
2
2
  import os
3
3
  import time
4
+ import traceback
4
5
  import typing
5
6
  from contextlib import contextmanager
6
7
  from enum import StrEnum
@@ -131,13 +132,14 @@ class Logger:
131
132
  message: str | None = None,
132
133
  attributes: Attributes | None = None,
133
134
  ) -> None:
135
+ traceback_str = "".join(traceback.format_tb(exception.__traceback__))
134
136
  patched_attributes = self._patch_attributes(attributes)
135
137
  if self.current_span is not None:
136
138
  self.current_span.record_exception(
137
139
  exception=exception, attributes=patched_attributes
138
140
  )
139
141
  self.log_error(
140
- message=f"error: {message}\nexception: {exception}",
142
+ message=f"error: {message}\nexception: {exception}{traceback_str}",
141
143
  attributes=patched_attributes,
142
144
  )
143
145