Skip to content

Streamed spans gate user attributes on sendDefaultPii at scope read time #20825

Description

@nicohrubec

applyCommonSpanAttributes in captureSpan.ts gates scope user attributes behind sendDefaultPii when attaching them to streamed spans. Per the data collection spec, sendDefaultPii should gate auto-instrumentation writing to the scope, not reading from it when constructing telemetry. Concretely, this means Sentry.setUser() data doesn't appear on streamed spans unless sendDefaultPii: true (which is unexpected).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugjavascriptPull requests that update javascript code

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions