Skip to content

Sentry.setUser not passing extra key pairs #58767

@shayani

Description

@shayani

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

Sentry Browser CDN bundle

SDK Version

7.73.0

Framework Version

Vanilla JS inside Rails

Link to Sentry event

No response

SDK Setup

Sentry.init({
      replaysSessionSampleRate: 1.0,
      replaysOnErrorSampleRate: 1.0,
      environment: "production",
      integrations: [
        new Sentry.Replay({
          maskAllText: false,
          blockAllMedia: false,
        }),
      ],
    });

Steps to Reproduce

Run through the webapp and record a replay. The replay is then sent to Sentry.io with user's IP, email and name, but any extra key pair is not being saved.

Follows snippet for setUser

Sentry.setUser(
      {
        username: 'My name',
        email: '[email protected]',
        agency_name: 'My company name'
      }
    )

Expected Result

I expect to receive the agency_name and this be recorded anywhere on Sentry Replay (probably under TAGS)

Actual Result

user.ip, user.email and user.username displays on TAGS tab on Replay. The agency_name doesn't show anywhere.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions