dify/api/tests
GareArc 83f5850d0a
refactor(telemetry): add resolved_parent_context property and fix edge cases
- Add resolved_parent_context property to BaseTraceInfo for reusable parent context extraction
- Refactor enterprise_trace.py to use property instead of duplicated dict plucking (~19 lines eliminated)
- Fix UUID validation in exporter.py with specific error logging for invalid trace correlation IDs
- Add error isolation in event_handlers.py to prevent telemetry failures from breaking user operations
- Replace pickle-based payload_fallback with JSON storage rehydration for security
- Update TelemetryEnvelope to use Pydantic v2 ConfigDict with extra='forbid'
- Update tests to reflect contract changes and new error handling behavior
2026-03-01 19:33:59 -08:00
..
fixtures/workflow fix(api): defer streaming response until referenced variables are updated (#30832) 2026-01-12 16:23:18 +08:00
integration_tests fix: fix delete_draft_variables_batch cycle forever (#31934) 2026-02-04 19:42:50 +08:00
test_containers_integration_tests [autofix.ci] apply automated fixes 2026-02-14 16:28:38 +08:00
unit_tests refactor(telemetry): add resolved_parent_context property and fix edge cases 2026-03-01 19:33:59 -08:00
__init__.py Initial commit 2023-05-15 08:51:32 +08:00