#3281 refactor: Emit structured exception information
Pull request opened by
edgarrmondragon
## Related
•
meltano/meltano#9521
## Summary by Sourcery
Refactor the console logging formatter to emit exceptions as structured JSON objects with detailed traceback and chaining, update tests to validate the new format, and expand documentation and schema accordingly
Enhancements:
• Introduce structured exception serialization in the console formatter, capturing exception type, module, message, traceback frames, and chaining information
• Define TypedDict schemas for frame and exception data
• Update logging schema to expect the
exception
field as an object instead of a string
Documentation:
• Document the new structured exception format in the logging implementation guide, including field definitions and examples
Tests:
• Enhance existing exception formatting test to assert structured exception fields and add a new test for chained exceptions
meltano/sdk