We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sentry Saas (sentry.io)
@sentry/node
@sentry/node ^8.5.0
koa ^2.15.2
No response
This is my config:
init({ dsn: '', tracesSampleRate: 0.1, profilesSampleRate: 1.0, normalizeDepth: 11, integrations: [nodeProfilingIntegration], environment: EnvVariablesUtility.NODE_ENV, enabled: EnvVariablesUtility.NODE_ENV !== 'local', beforeSend(event, hint) { const error = hint.originalException; if (isHttpError(error) && error.expose) { return null; } return event; }, });
The RequestData integration is a default integration and according to the doc, the request data should be included by default, however, it is not.
RequestData
The issue page shows the curl request without the request data:
curl \ -X POST \ --compressed \ -H "Accept: application/json, text/plain, */*" \ -H "Accept-Encoding: gzip, br" \ -H "Accept-Language: en-US,en;q=0.9" \ ... "{the_url}"
The issue page shows the request body
The issue page doesn't show the request body
The text was updated successfully, but these errors were encountered:
Hi @maximedupre, thanks for writing in.
Are you using @koa/bodyparser? Could you please provide a reproduction repo or stackblitz so we can further investigate?
@koa/bodyparser
From my testing, even with the body parser the request passed to the integration doesn't contain the body already 🤔.
Sorry, something went wrong.
Hi @andreiborza,
I'm actually using koa-better-body.
koa-better-body
I don't have time to create a repro right now, but when I do I'll be sure to post it here.
Thanks
@maximedupre thanks, don't bother with the reproduction we identified the issue. Thanks again for reporting this.
mydea
AbhiPrasad
Successfully merging a pull request may close this issue.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
@sentry/node ^8.5.0
Framework Version
koa ^2.15.2
Link to Sentry event
No response
Reproduction Example/SDK Setup
This is my config:
Steps to Reproduce
The
RequestData
integration is a default integration and according to the doc, the request data should be included by default, however, it is not.The issue page shows the curl request without the request data:
Expected Result
The issue page shows the request body
Actual Result
The issue page doesn't show the request body
The text was updated successfully, but these errors were encountered: