Skip to content

profiling-node should store profile_id on span rather than profile context #15405

Open
@timfish

Description

@timfish

Description

Currently @sentry/profiling-node stores the profile_id on the isolated context:

getIsolationScope().setContext('profile', { profile_id });

This means the profile cannot be found if there are multiple versions of @sentry/core in the dependencies.

Instead can we store the profile_id on the span? There's already a property for this:

Then the integration wouldn't rely on updating any scope. In the beforeEnvelope hook we just go through the spans until we find a profile_id?

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions