Recommended way to capture a replayId #7794
-
We're evaluating this vs. fullstory. Requirement is to include a link to a session replay in certain circumstances for support personnel out of band to Sentry dashboard, with some other data irrelevant to this question.
For Replay, it seems I can construct a URL myself with a replay ID. What's the right way to do this? I'm currently reading private fields, which I'd prefer not to do: const replay = Sentry.getCurrentHub()
.getClient()
?.getIntegration(Sentry.Replay);
// @ts-expect-error because we're raiding sentry private fields.
const replayId = replay?._replay.session.id;
if (replayId) {
return `https://myco.sentry.io/replays/www:${replayId}/`;
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @pckilgore thanks for your great suggestion! We're going to add an API to make this easier, please stay tuned to our upcoming releases, but for now you'll have to keep accessing the private API. |
Beta Was this translation helpful? Give feedback.
Hey @pckilgore thanks for your great suggestion! We're going to add an API to make this easier, please stay tuned to our upcoming releases, but for now you'll have to keep accessing the private API.