Small Aspire-based sample that reproduces a tracing/correlation question with Dapr.Workflow.
The sample shows that OpenTelemetry is configured and telemetry is emitted, but the workflow execution is not shown as one single end-to-end trace across:
- the workflow
- the workflow activities
- the downstream pub/sub processing
DaprWorkflowExploration.AppHost: Aspire host that starts the app and Dapr sidecarsDaprWorkflowExploration.ApiService: API + workflow orchestrationDaprWorkflowExploration.AccountingService: subscriber that processes the payment request and publishes the resultDaprWorkflowExploration.Web: simple frontendDaprWorkflowExploration.ServiceDefaults: shared Aspire/OpenTelemetry configuration
- .NET 8 SDK
- Dapr CLI installed
- Docker running
Initialize Dapr locally if you have not done that already:
dapr initStart the Aspire app from the repository root:
dotnet run --project DaprWorkflowExploration.AppHostThis starts:
apiserviceonhttp://localhost:5497webfrontendonhttp://localhost:5498accountingserviceonhttp://localhost:5499- the Aspire dashboard
Use OrderProcessing.http.
Suggested sequence:
- Run
POST /store - Run
POST /order/process - Copy the
workflowInstanceIdfrom the response - Run
GET /order/process/{workflowInstanceId}until the workflow completes
The HTTP file also includes requests for:
- getting a single store item
- listing all store items
The expectation is that the complete order flow is visible as one trace, including:
- the request that starts the workflow
- workflow execution
- workflow activities
- downstream pub/sub processing in
AccountingService - the event raised back to the workflow
Metrics, logs, and traces are emitted, but the spans are split across separate traces instead of appearing under a single end-to-end trace for the whole workflow process.
The Aspire dashboard makes the split visible:
First tace POST /order/process together with the workflow orchestration and activity spans

Another trace shows the pub/sub flow for payment-requests and payment-results

These screenshots shows that telemetry exists, but trace continuity across the full workflow lifecycle is missing.