-
Notifications
You must be signed in to change notification settings - Fork 805
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
Add logs to debug timer tasks #5581
Conversation
@@ -1919,6 +1919,9 @@ const ( | |||
// Value type: Bool | |||
// Default value: true | |||
EnableShardIDMetrics | |||
|
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.
can you add the comments as the other constants have? it's kind of redundant with below definition but better to be consistent until we come up with a better structure to define these dynamicconfigs
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.
Actually, I'm planning to remove those comments.
tag.TaskID(task.TaskID), | ||
tag.WorkflowTimerID(timerInfo.TimerID), | ||
tag.WorkflowScheduleID(timerInfo.StartedID), | ||
tag.WorkflowNextEventID(mutableState.GetNextEventID()), |
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.
do you think it would help to include details from timerSequenceID
?
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.
timerSequenceID.EventID is the same as timerInfo.StartedID
tag.WorkflowDomainID(task.DomainID), | ||
tag.WorkflowID(task.WorkflowID), | ||
tag.WorkflowRunID(task.RunID), | ||
tag.TaskType(task.TaskType), | ||
tag.TaskID(task.TaskID), | ||
tag.WorkflowTimerID(timerInfo.TimerID), | ||
tag.WorkflowScheduleID(timerInfo.StartedID), | ||
tag.WorkflowNextEventID(mutableState.GetNextEventID()), |
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.
you can define the tags at line 206 above if/else so they don't go out of sync between info and debug calls in the future
What changed?
Add logs to debug timer tasks
Why?
To improve observability for debugging duplicate timer issues
How did you test it?
Potential risks
Release notes
Documentation Changes