Skip to content

Do not mark every frame as in-app #1754

Closed
@armenzg

Description

@armenzg

Problem Statement

Most errors on Sentry with stacktraces have every frame marked as in_app even though many of the files are part of the 3rd party libraries. This causes issues for the commit context and issue details page.

Solution Brainstorm

This can be avoided if we look at the files that belong to the virtualenv. If a file is under os.environ.get("VIRTUAL_ENV") then it should be marked as in_app: False. Or even check that the abs path includes site-packages (e.g. /some/path/repo/.venv/lib/python3.10/site-packages/django/views/decorators/csrf.py).

This would be a huge win for suspect commits (since we always look for the first in-app frame) and issue details page (since we load the first in-app frame).

CC @NisanthanNanthakumar @scttcper @asottile-sentry

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions