exceptionless/Exceptionless

Exception Data cannot be displayed

jianxuanbing opened this issue · 6 comments

The Data in the exception cannot be displayed on the UI。

The node data.@error.data cannot be displayed on the UI.

  • TestA : ABC
  • TestA : A

image

image

{
    "id": "64a630aa894ddb000156027c",
    "organization_id": "63be1366fd2683000d4a9c54",
    "project_id": "63be136efd2683000d4a9c55",
    "stack_id": "64a630b2894ddb0001560278",
    "is_first_occurrence": true,
    "created_utc": "2023-07-06T03:10:42.4504723",
    "type": "error",
    "date": "2023-07-06T11:10:34.3883139+08:00",
    "tags": [
        "2dea99757059476581a578f65de0e3b1"
    ],
    "message": "TestWarningWithData",
    "data": {
        "RequestPath": "/api/Test/testWarningWithData",
        "ParentId": "0000000000000000",
        "@error": {
            "message": "TestWarningWithData",
            "type": "Bing.Exceptions.Warning",
            "code": "-2146233088",
            "data": {
                "TestA": "ABC",
                "Test": "A",
                "@target": {
                    "ExceptionType": "Bing.Exceptions.Warning",
                    "Message": "TestWarningWithData",
                    "Method": "Bing.Admin.Apis.TestController.TestWarningWithDataAsync()"
                },
                "@ext": {
                    "HttpStatusCode": 0
                }
            }
        },
        "RequestId": "80000026-0008-ff00-b63f-84710c7967bb",
        "@version": "1.0.0+6a80f7a7745876a9ca191a9dbaa3fdee5cbf6d31",
        "TraceId": "2dea99757059476581a578f65de0e3b1",
        "CorrelationId": "2dea99757059476581a578f65de0e3b1",
        "LogLevel": "Error",
        "SpanId": "349cb363e4886cfb",
        "error": {
            "code": [
                "-2146233088"
            ],
            "type": [
                "Bing.Exceptions.Warning"
            ],
            "message": [
                "TestWarningWithData"
            ]
        }
    }
}

How are you specifying that data? All of our clients place extra exception data in the @ext object.

but, my logger is Logging->Excpeionless

throw new Exception("TestWarningWithData") { Data = { { "TestA", "ABC" }, { "Test", "A" } } };

@jianxuanbing what version of the .NET Client are you using? I'll make sure we add this to our test case.

  • SDK Version: NET6
  • Exceptionless.Extensions.Hosting: 6.0.2
  • Exceptionless.Extensions.Logging: 6.0.2
  • Exceptionless Server Version: 7.2.1

I've confirmed this is a front-end bug. The data items should be copied over and it's only extra defined exception properties that will be moved over to the @ext

Thanks for reporting this, this is fixed in a nightly release build.