Open lmolkova opened 3 days ago
Are you using AspNetCore integration here?
Yes, it's configured in ConfigureFunctionsWebApplication()
This is a known issue we are working on for AspNetCore integration. We have AspNetCore and Functions pipelines both creating their own activity to track this work and those two pipelines are disjointed, causing the correlation issue.
Awesome, feel free to close if it's a duplicate
Description
I configure ASP.NET Core integration along with OTel in the following way
and enable host telemetry with
In my function code I create another activity
What I get:
I.e.
GET
- incoming HTTP request to hostGET
- outgoing HTTP request from host to workerTestFuncs GET api/Function1
- incoming request on worker tracked by ASP.NET Core and OTel instrumentation on the workerTHIS IS A TEST
generated withinFunction1
execution. It's a child of the incoming request to host - this is the problemWhat I expect
GET
- incoming HTTP request to hostGET
- outgoing HTTP request from host to workerTestFuncs GET api/Function1
- incoming request on worker tracked by ASP.NET Core and OTel instrumentation on the workerTHIS IS A TEST
generated withinFunction1
execution. It's a child of the incoming request to workerSteps to reproduce
docker run --rm -p 18888:18888 -p 4317:18889 -p 4318:18890 --name aspire-dashboard mcr.microsoft.com/dotnet/nightly/aspire-dashboard:latest
Related to https://github.com/Azure/azure-functions-dotnet-worker/issues/2733