microsoft / DurableFunctionsMonitor

A monitoring/debugging UI tool for Azure Durable Functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't see Input column for Activity Functions

mronnblom-ith opened this issue · comments

Hello!

I have just tried out DFM in injected mode with .Net 6 in-process, Azure functions v4.

Based on this question, I thought it would work to show an Input column for Activity Functions, but even though I have added that config to host.json and there is data in the db, I don't see anything in the DFM UI. Should an "Input" column appear automagically when there is input in the db, or do I need to do something myself (e.g. Liquid template)?

Project references:

<ItemGroup>
	<PackageReference Include="DurableFunctionsMonitor.DotNetBackend" Version="6.3.0" />
	<PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.1.0" />
	<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" Version="2.10.0" />
	<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="4.2.0" />
</ItemGroup>

host.json:

{
  "version": "2.0",
  "logging": {
    "applicationInsights": {
      "samplingSettings": {
        "isEnabled": true,
        "excludedTypes": "Request"
      }
    }
  },
  "extensions": {
    "durableTask": {
      "storeInputsInOrchestrationHistory": true
    }
  }
}

Thanks for raising this, @mronnblom-ith !

I'm afraid, #1 was closed (by me) in error, and there still needs to be some coding on DfMon side for the activity input to become visible.

Will do it in the next version.

Sounds good! 👍

When you implement this, keep in mind that this input can be either a single type or a tuple, making visualization a bit trickier..

Single type:

[{"$type":"MyNamespace.MyClass, MyNamespace",...

Tuple:

[{"$type":"System.ValueTuple`3[...

Hi, I see a commit was made by @scale-tone. May I ask when do you plan to release this?

Thank you

Hi @tomhreb , that commit should be present in the recent .NET Isolated beta package, and you're very welcome to try it out and confirm if it works for you.

As for the official release, I cannot share any estimates, sadly.
It's basically just me still driving this project, on saturday nights. So there is no release cadence, and neither I have any idea when I'd get another timeslot available for this.

Hi @tomhreb , that commit should be present in the recent .NET Isolated beta package, and you're very welcome to try it out and confirm if it works for you.

As for the official release, I cannot share any estimates, sadly. It's basically just me still driving this project, on saturday nights. So there is no release cadence, and neither I have any idea when I'd get another timeslot available for this.

Thanks for you reply, unfortunately we're using it through the docker image. We'll wait till you have time, no problem.

Done in v6.4. Pls, validate.

@scale-tone verified working, thanks a lot!

For (optional) further improvements, since the data can be quite a big JSON:

  • Pretty print the JSON in the popup. This is already done for orchestration input, so a bit inconsistent currently. Same goes for Result popup.
  • Decrease the font size slightly in all the popups to get a better overview of large data