发布

  • OPIK-1964: Fix JSON parsing exception in OpenTelemetryMapper (#2685)

    frostbyte_neo 发布于 2025-07-08 07:28:42 +00:00

    • OPIK-1964: Fix JSON parsing exception in OpenTelemetryMapper
    • Add exception handling for invalid JSON strings in extractToJsonColumn method
    • Add exception handling for invalid JSON strings in extractUsageField method
    • Store invalid JSON as plain text instead of throwing exceptions
    • Add comprehensive unit tests for JSON parsing scenarios
    • Make extractToJsonColumn method package-private for testing
    • OPIK-1964: Add specific test cases for 'Analyze' token error scenario
    • Add testExtractToJsonColumn_ExactAnalyzeTokenError to test the exact reported error
    • Add testExtractToJsonColumn_StringStartingWithAnalyze for broader coverage
    • Add testExtractToJsonColumn_StringThatLooksLikeJsonObjectButStartsWithAnalyze for edge cases
    • All tests verify that the 'Unrecognized token Analyze' error is handled gracefully
    • Address PR review
    下载附件