Original exception never logged with Retryable Topics #2211
tomazfernandes
started this conversation in
General
Replies: 2 comments 9 replies
-
Just to illustrate, if we decide to have the option of logging only after retry exhaustion, this is where I think we might do it: If |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This SO user pointed out that, when the record goes through the Retry Topic flow, the original exception never gets logged.
We had already discussed this a bit earlier this year.
@garyrussell proposed:
I suggested as an alternative:
The main difference seems to be whether we want to log the exception at every retry attempt or only before it goes to the DLT.
We might look into adding both and making these configurable - users might be able to set a flag in
DLPR
to log after every attempt, andDLPRF
to log before going to the DLT.We could also have this as an enum in
DLPRF
, with something likeOriginalExceptionLoggingStrategy.NEVER
,EVERY_ATTEMPT
,AFTER_RETRIES_EXHAUSTED
-DLPRF
would then set the appropriate flag inDLPR
.WDYT?
Beta Was this translation helpful? Give feedback.
All reactions