I'm trying to log in Sentry errors occurred in a flow that includes Stripe web-hooks but I only want to log those that are created automatically by Stripe when it retry failed web-hooks and only when is the last retry that Stripe is going to make.
Is there any field or way to know if is the last retry Stripe is going to make?
Unfortunately that's not possible. The retry behavior isn't really predictable and has different factors that can influence it. You can read more about the retries behavior here.