agnt5 0.2.8a7__cp310-abi3-macosx_11_0_arm64.whl → 0.2.8a9__cp310-abi3-macosx_11_0_arm64.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 agnt5 might be problematic. Click here for more details.

agnt5/_core.abi3.so CHANGED
Binary file
agnt5/_telemetry.py CHANGED
@@ -69,8 +69,13 @@ class OpenTelemetryHandler(logging.Handler):
69
69
 
70
70
  # Include exception traceback if present (from logger.exception() or exc_info=True)
71
71
  if record.exc_info:
72
- # formatException() returns the formatted traceback string
73
- exc_text = self.formatException(record.exc_info)
72
+ # Use formatter to format the exception, or fall back to basic formatting
73
+ if self.formatter:
74
+ exc_text = self.formatter.formatException(record.exc_info)
75
+ else:
76
+ # Fallback: use basic traceback formatting
77
+ import traceback
78
+ exc_text = ''.join(traceback.format_exception(*record.exc_info))
74
79
  message = f"{message}\n{exc_text}"
75
80
 
76
81
  # Extract correlation IDs from LogRecord attributes (added by _CorrelationFilter)