See frontend replays in backend graphql requests #9122
-
I can currently see my frontend(sentry integrated in a react app) replays from my backend(sentry integrated in my Nestjs app) sentry logs. But I had to update my backend sentry integration to include name of the graphql requests instead of simply seeing
I am not sure what to do with it such that it enables me to see my replays again from my workbench sentry logs. I have tried to do How do I use the replayId used from above to "plug it" to my backend sentry logs as well. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
How did you make this change? |
Beta Was this translation helpful? Give feedback.
-
In my nestjs backend, in my main.ts, I did this
Then I added two files viz.
and this is my plugin.ts
and then finally "plugged" both my context and plugin in
|
Beta Was this translation helpful? Give feedback.
try using the tracing headers directly with the
tracingContextFromHeaders
util. We're gonna make this easier to use in a future version of the SDK.you might also want to check out https://docs.sentry.io/platforms/node/configuration/async-context/