sam-lippert
sam-lippert
@dihmeetree This might be an issue with the toucan-js library, since the `ignoreErrors` property should pass through to it. Do you have the same issue if you try to use...
There's also an update to the @hono/sentry middleware that can be applied to see if that works.
@alexgleason It looks like `ignoreErrors` filters on the error's `message` property according to Sentry's docs. Does filtering work for you if you update the middleware version and set `ignoreErrors: ['No...
@yusukebe Sounds like the author has accepted a solution, can you close this?
@osameyy You shouldn't need to call `await next()` since this happens from within the `sentry(...)` middleware call, but you should be able to pass the `c` and `next` arguments through...
@danielbuechele If the Toucan dependencies are up to date, a request body should be able to be sent by calling `getSentry(c).setRequestBody(await c.req.raw.text())` or `getSentry(c).setRequestBody(await c.req.raw.json())` depending on the content type....
@yusukebe I see that the type registration system on Context returns the `Toucan` type, so there should even be code completion for `getSentry(c).setRequestBody()` in vscode. Well done!
If you're already reading the request body someplace else, then you can pass that instance to `setRequestBody`. However, if you don't have control over how the request body is being...
> But in any case, what I'm not understanding is, why is `c.req.raw,` passed as `body` to Toucan, even if it's not serializable (https://github.com/honojs/middleware/blob/main/packages/sentry/src/index.ts#L40C16-L40C26) and passing the request directly to...
> Does that mean creating options like `passThroughRequest: boolean`? No, it would mean modifying https://github.com/honojs/middleware/blob/main/packages/sentry/src/index.ts#L21 so that it either omits no properties or removing this line and having the middleware...