-
[OPIK-2902] [BE] Optimize attachment JSON processing (#3877)
发布于
2025-10-30 16:37:09 +00:00 - Revision 2: Cleaner attachment processing
This refactoring:
- Improves code readability and maintainability
- Creates AttachmentContext at the top level in stripAttachmentsCommon() simplifying method signatures
- Maintains backward compatibility via public API overload
- Revision 3: Address Copilot review feedback
- Start attachment counter at 0 and use incrementAndGet pattern for clarity
- Pass attachment number as int instead of AtomicInteger to processBase64Attachment
- Simplify iterator loop using while loop with properties().iterator()
- Revision 3: Add OpenTelemetry tracking for regex operations in attachment processing
下载附件