Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Dotnet8 Azure Function performance degrade when DD_TRACE_ENABLED set to true #6506

Closed
ashan1992 opened this issue Jan 7, 2025 · 1 comment
Labels

Comments

@ashan1992
Copy link

Tracer Version(s)

3.7.0

Operating system and platform

Linux

Instrumentation Mode

Automatic

TFM

net8.0

Bug Report

We have observed a performance degradation upon enabling Datadog tracing in our .NET 8 Azure Function application. Additionally, we are encountering TimeoutException errors in the HttpTrigger function affecting our endpoints.

System.TimeoutException: Timed out waiting for the HTTP context to be set. Invocation: '11219d9d-ca7d-4f96-a0e3-e38feab12190'.
---> System.TimeoutException: The operation has timed out.
at Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore.DefaultHttpCoordinator.SetHttpContextAsync(String invocationId, HttpContext context) in D:\a_work\1\s\extensions\Worker.Extensions.Http.AspNetCore\src\Coordinator\DefaultHttpCoordinator.cs:line 36
--- End of inner exception stack trace ---
at Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore.DefaultHttpCoordinator.SetHttpContextAsync(String invocationId, HttpContext context) in D:\a_work\1\s\extensions\Worker.Extensions.Http.AspNetCore\src\Coordinator\DefaultHttpCoordinator.cs:line 40
at Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore.WorkerRequestServicesMiddleware.Invoke(HttpContext context) in D:\a_work\1\s\extensions\Worker.Extensions.Http.AspNetCore\src\AspNetMiddleware\WorkerRequestServicesMiddleware.cs:line 28
at Datadog.Trace.ClrProfiler.AutoInstrumentation.AspNetCore.BlockingMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)

Reproduction Code

No response

@andrewlock
Copy link
Member

Hi @ashan1992, this appears to be a duplicate of #6494, which we're looking into, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants