I'm encountering an issue where some specific exception does not tracked in Application Insight. I'm using SDK 2.21.0 with net6.0
Upon debugging, I see debug log did create the exception telemetry, and no warning/error be found, but the exception still not appear in Application Insight. I tried calling the ingestion with the telemetry data directly as follow:
{
"itemsReceived": 1,
"itemsAccepted": 0,
"errors": [
{
"index": 0,
"statusCode": 400,
"message": "109: Field 'method' on type 'StackFrame' is required but missing or empty. Expected: string"
}
]
}
I added "method": "n/a" in the request and the telemetry is tracked successfully. This is likely due to the method is being inlined, so the StackFrame cannot retrieve the method info
My question is:
Is this a bug in API side?
Is there a workaround that I can do to workaround this problem? There are a few exceptions that can't be track, and some of them I don't control the source code, so adding MethodImplOptions.NoInlining to the method is not always possible
If you need the full telemetry data I can provide it, I didn't post it here now as I'll have to redact some data from the telemetry
I'm encountering an issue where some specific exception does not tracked in Application Insight. I'm using SDK 2.21.0 with net6.0
Upon debugging, I see debug log did create the exception telemetry, and no warning/error be found, but the exception still not appear in Application Insight. I tried calling the ingestion with the telemetry data directly as follow:
Resulted in 400 response
I added
"method": "n/a"
in the request and the telemetry is tracked successfully. This is likely due to the method is being inlined, so theStackFrame
cannot retrieve the method infoMy question is:
MethodImplOptions.NoInlining
to the method is not always possibleIf you need the full telemetry data I can provide it, I didn't post it here now as I'll have to redact some data from the telemetry