dotTrace + Service Fabric API profiling not capturing endpoint/controller calls
Hello,
I'm using dotTrace (standalone version) to profile an ASP.NET Core Fabric Cluster (Windows 11, Visual Studio Professional 2022).
My Setup
- Two APIs, X1Api, X2Api (ASP.NET Core, .NET 8)
- Both deployed into local service fabric cluster (running via FabricHost)
- I have a React frontend is making calls to X1API → X2 API→SQL Server.
- I started dotTrace form VS menu ReSharper → Profile → “Run startup configuration Performance Profiling”
- Snapshot generated, but I only see ThreadPool/StartProc/Wait in HotSpot.
- No API controller method or endpoint specific showing in call tree.
Can you please help me to correct way to profiling APIs running under local Service Fabric with dotTrace?
Thanks in advance.
Deb
Please sign in to leave a comment.
Hi!
Please make sure you are profiling your dotnet application and not the cluster itself.
If profiling target is correct and the issue still persists, could you collect dotTrace core logs as described here (without additional log flags) and upload it to our ftp?
Thanks Anna, may I know please how do I start API profiling through Visual Studio 2022 for Service Fabric application.
It is not possible to profile a containerized application from outside the container. You should include dotTrace in your container to be able to profile it. For example, you can use the dotTrace command-line tool or the self-profiling API.