sentry-dotnet icon indicating copy to clipboard operation
sentry-dotnet copied to clipboard

when ProfilingIntegration is used memory and CPU usage increases significantly

Open aalirezamoradii opened this issue 11 months ago • 3 comments

Package

Sentry.AspNetCore

.NET Flavor

.NET

.NET Version

8.0.0

OS

Linux

SDK Version

4.13.0

Self-Hosted Sentry Version

24.10.0

Steps to Reproduce

in the .Net 8.0 (Microsoft.NET.Sdk.Web) Program.cs

var builder = WebApplication.CreateBuilder(args);
        
builder.WebHost.UseSentry(o =>
{
    o.AddIntegration(new ProfilingIntegration(TimeSpan.FromMilliseconds(500)));
    o.AddEntityFramework();
});

var app = builder.Build();

// other middlewares

app.UseSentryTracing();

// other middlewares

app.Run();

Expected Result

Without using o.AddIntegration(new ProfilingIntegration(TimeSpan.FromMilliseconds(500)));

Image

Actual Result

After using o.AddIntegration(new ProfilingIntegration(TimeSpan.FromMilliseconds(500)));

When start: Image

After 5 minutes: Image

aalirezamoradii avatar Nov 17 '24 12:11 aalirezamoradii