-
-
Notifications
You must be signed in to change notification settings - Fork 229
Closed
Description
Running the following program with tracing enabled results in increasing memory usage which does not appear to be cleaned up by GC.
Sample program
SentrySdk.Init(o =>
{
o.Dsn = "https://[email protected]:65535/2147483647";
o.Release = "release";
o.TracesSampleRate = 1.0;
});
while(true)
{
DoWork();
}
void DoWork()
{
var transaction = SentrySdk.StartTransaction("name", "operation");
for (var i = 0; i < 10; i++)
{
var span = transaction.StartChild("operation");
Console.WriteLine($"{i}: {Fibonacci(i)}");
span.Finish();
}
transaction.Finish();
int Fibonacci(int n) => n switch
{
0 => 0,
1 => 1,
_ => Fibonacci(n - 1) + Fibonacci(n - 2)
};
}Memory profile
Targeting net6.0...

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Projects
Status
Done