How can i set "beforeBreadcrumb" option? #455
Answered
by
rchl
lovefields
asked this question in
Q&A
-
Hi, i using @nuxt/sentry in my project. And i set option next: sentry: {
dsn: secrets.getSecret("SENTRY_DSN_FRONT"),
config: {
environment: process.env.NODE_ENV,
},
beforeBreadcrumb(breadcrumb, hint) {
if (breadcrumb.category === "xhr") {
const data = {
requestBody: hint.xhr.__sentry_xhr__.body,
response: hint.xhr.response,
responseUrl: hint.xhr.responseURL,
};
return { ...breadcrumb, data };
}
return breadcrumb;
},
}, but sentry xhr breadcrumb didn't have request body. How can i set "beforeBreadcrumb" in Version info
|
Beta Was this translation helpful? Give feedback.
Answered by
rchl
Oct 26, 2022
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lovefields
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
beforeBreadcrumb
has to go insideconfig
(orclientConfig
/serverConfig
).