DurableFunctionsMonitor icon indicating copy to clipboard operation
DurableFunctionsMonitor copied to clipboard

DFM doesn't display FailureDetails for failed ActivityFunctions, if the orchestration runs in a .NET Isolated project

Open mronnblom-ith opened this issue 10 months ago • 3 comments

Reproduce:

FunctionApp

  • Durable Function .Net 8 Isolated with ASP.NET Core Integration
  • One ActivityFunction fails with an exception
  • Config value EnableUserCodeException does not matter

DFM

  • DFM as VS Code extension, or stand-alone .Net 8 Isolated (without ASP.NET Core Integration)

Actual:

  • The "Result" column on the TaskFailed history item is blank. (input redacted)

image

Expected:

  • The "Result" column on the TaskFailed history item shows the "FailureDetails" column from the data store.
  • StackTrace is also shown
  • Text is pretty printed in the popup (newline most importantly). Not just the JSON, but also the "\r\n" in the StackTrace.

DFM in-process does this.

mronnblom-ith avatar Apr 18 '24 12:04 mronnblom-ith

The reason for this is that in .NET Isolated version of Durable Functions they've changed the field name for storing those exception details in XXXHistory table.

Previously the field was called "Details", now as I can see, it is called "FailureDetails".

And the issue only surfaces for .NET Isolated orchestrations (older ones are displayed correctly).

Anyway, a small fix is needed in both DfMon InProc and DfMon Isolated, to make the history be fetched correctly.

scale-tone avatar Apr 18 '24 20:04 scale-tone

Thanks a lot for the fix, @epDugas ! Here is your Isolated beta package: https://www.nuget.org/packages/DurableFunctionsMonitor.DotNetIsolated/6.5.0-beta1

scale-tone avatar Apr 26 '24 13:04 scale-tone

Sorry for the delay @scale-tone. I can confirm that 6.5.0-beta1 fixes this issue.

mronnblom-ith avatar May 15 '24 14:05 mronnblom-ith

Fixed in v6.5

scale-tone avatar Jun 30 '24 18:06 scale-tone