You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In replay sessions, I would like to search by x-request-id (taken from backend) and find the relevant replay session quickly.
X-request-id header is injected into response headers and I can fetch it. Tried adding using sentry.setTag()
axios.interceptors.response.use(
(response) => {
// Capture x-request-id from response headers and set as Sentry tag
const requestId = response.headers['x-request-id'];
if (requestId) {
Sentry.setTag('x-request-id', requestId);
}
return response;
},
But this doesn't seem to be scalable solution as there are thousands of XHRs within a session, each having its own unique x-request-ids and being added to tags etc.
What's the recommended solution here? Requirement being given a x-request-id from backend, I need to find the correct session replay and jump into it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hello,
In replay sessions, I would like to search by x-request-id (taken from backend) and find the relevant replay session quickly.
X-request-id header is injected into response headers and I can fetch it. Tried adding using sentry.setTag()
But this doesn't seem to be scalable solution as there are thousands of XHRs within a session, each having its own unique x-request-ids and being added to tags etc.
What's the recommended solution here? Requirement being given a x-request-id from backend, I need to find the correct session replay and jump into it.
All reactions