Skip to content

Grouping by Stacktrace with closures #1826

@jorgsowa

Description

@jorgsowa

How do you use Sentry?

Self-hosted / on-premises

SDK version

4.11

Steps to reproduce

I'm extracting the issue from closed one about anonymous classes.

Similar issue happens for PHP 8.4, but for closures.

Example:
https://3v4l.org/g3Stta

try {
    $test =  function() {
        throw new Exception('exc');
    };
    $test();
} catch (Throwable $e) {
    var_dump($e->getTrace());
}

Expected result

Grouping By Exception Stack-trace and using prefixes option ignores the path of closures.

Actual result

The path prefix is not cut properly from the closures in the stack trace.

Metadata

Metadata

Assignees

Labels

Projects

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions