-
Notifications
You must be signed in to change notification settings - Fork 2
feat(cronsetup/request-id) Generate a unique request ID for each cron execution #1127
New issue
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
base: master
Are you sure you want to change the base?
Conversation
153abf3
to
1f2141f
Compare
1f2141f
to
405f4fb
Compare
405f4fb
to
5b37a44
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YES ! YES ! YES ! YES A THOUSAND TIMES !
log = log.WithField("cron-job", j.Name) | ||
log.Debug("Running cron job") | ||
return logger.ToCtx(ctx, log) | ||
requestID, err := uuid.NewV4() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It shouldn't happen but could you check that there is no RequestID already in the context ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could even if indeed it shouldn't happen
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Just a friendly ping @leo-scalingo. It has some small conflicts and one last comment from John. |
Fixes #1126
CHANGELOG.md