Skip to content

[mongodb] Filter out spans from findOne's internal calls to find #5278

@lobsterkatie

Description

@lobsterkatie

We instrument both the find and findOne methods in our mongodb integration. Because findOne internally calls find, this means that users end up with span trees which look like this:

image

even though they've only made calls to findOne, not find.

If possible, we should prevent those find spans from showing up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: nodeIssues related to the Sentry Node SDK

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions