Skip to content

[Feature request]: Add per-worker thresholds for N+1 query detection #93408

Open
@dalnoki

Description

@dalnoki

Problem Statement

Currently, Sentry applies N+1 query detection thresholds globally at the project level. While you can adjust the overall threshold in Settings → Performance, there’s no way to tune detection sensitivity for specific background workers or tags. The customer would like to request more granular controls so that different workloads can have different N+1 time thresholds.

Feedback from the customer

300ms is a very reasonable duration for queries that need to result in responses to users. But we rely on workers to offload long-running actions that might actually involve equally long-running DB-queries. These should still be monitored but allowed a longer duration.

Solution Brainstorm

No response

Product Area

Performance

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions