Uh oh!
There was an error while loading. Please reload this page.
Recommended way to capture a replayId #7794
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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: constreplay=Sentry.getCurrentHub().getClient()?.getIntegration(Sentry.Replay);// @ts-expect-error because we're raiding sentry private fields.constreplayId=replay?._replay.session.id;if(replayId){return`https://myco.sentry.io/replays/www:${replayId}/`;} |
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. |
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.