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
The Inngest sentry middleware does not capture all error data from errors that cause an immediate function failure. This includes both instances of NonRetriableError, as well as errors that are thrown on the final retry of a function.
Describe the bug
The Inngest sentry middleware does not capture all error data from errors that cause an immediate function failure. This includes both instances of
NonRetriableError
, as well as errors that are thrown on the final retry of a function.To Reproduce
Steps to reproduce the behavior:
Define an error that includes extra data such as:
In an Inngest function, throw this error from a step inside a function that retries:
In Sentry, the first four retries will log the extra data in the context, but the fifth and final retry doesn't.
This also affects any other properties on Error, which are not captured on the final retry attempt.
Expected behavior
The
extra
field on error should be captured regardless of whether it is the final error thrown in a retry sequence.Code snippets / Logs / Screenshots
Not final retry:
Final retry:
System info (please complete the following information):
Framework is Sveltekit.
The text was updated successfully, but these errors were encountered: