feat(trace): add cadenceIsCron tag in the start workflow span#1071
feat(trace): add cadenceIsCron tag in the start workflow span#1071shijiesheng wants to merge 1 commit into
Conversation
Signed-off-by: Shijie Sheng <liouvetren@gmail.com>
Code Review ✅ Approved 1 resolved / 1 findingsAdds the ✅ 1 resolved✅ Bug: String comparison with != produces wrong cadenceIsCron value
OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
| .withTag(TAG_WORKFLOW_TYPE, context.getWorkflowType().getName()) | ||
| .withTag(TAG_WORKFLOW_ID, context.getWorkflowId()) | ||
| .withTag(TAG_WORKFLOW_RUN_ID, context.getRunId()) | ||
| .withTag(TAG_IS_CRON, attributes.getCronSchedule() != "") |
There was a problem hiding this comment.
| .withTag(TAG_IS_CRON, attributes.getCronSchedule() != "") | |
| .withTag(TAG_IS_CRON, attributes.getCronSchedule() != null && !attributes.getCronSchedule().isEmpty()) |
!= on strings compares object references
What changed?
Add
cadenceIsCrontag on execute workflow span. (In Go, we add it in start workflow span)Why?
cadence-workflow/cadence-go-client#1518
How did you test it?
Unit Test / Integration Test
Potential risks
Release notes
Documentation Changes