Skip to content

[Replay]: Remove replayId tag #11618

Closed as not planned
Closed as not planned
@bruno-garcia

Description

@bruno-garcia

Relay automatically adds replay_id to contexts:

This should be enough for the product to link an error to a replay.

We should be able to remove this code now:

// Tag errors if it has been sampled in buffer mode, or if it is session mode
// Only tag transactions if in session mode
const shouldTagReplayId = isErrorEventSampled || replay.recordingMode === 'session';
if (shouldTagReplayId) {
event.tags = { ...event.tags, replayId: replay.getSessionId() };
}

Blocked by getsentry/sentry#68950

Worth noting that because this requires a fix that's being done in Sentry, this change will regress the experience of replays on Self Hosted Sentry that doesnt' include this version. So we might want to postpone adding this for a while.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions