.NET | Durable Functions
This sample demonstrates how to enable distributed tracing in Durable Functions using the Durable Task Scheduler backend. It shows the end-to-end trace correlation across orchestrators, activities, and HTTP triggers — viewable in both Jaeger (local) and Application Insights (Azure).
- .NET 8 SDK or later
- Docker
- Azure Functions Core Tools v4+
-
Start the infrastructure:
docker compose up -d
-
Run the function app:
func start
-
Trigger an orchestration:
curl -X POST http://localhost:7071/api/StartOrchestration
-
View traces:
- Jaeger UI: http://localhost:16686
- DTS Dashboard: http://localhost:8082
Distributed tracing is enabled in host.json:
{
"extensions": {
"durableTask": {
"tracing": {
"distributedTracingEnabled": true,
"version": "V2"
}
}
}
}When deployed to Azure with Application Insights configured:
- Navigate to your Application Insights resource
- Go to Transaction Search
- Filter for events with Durable Functions prefixes (
orchestration:,activity:) - Click on an event to see the Gantt chart showing the full orchestration flow