Commit 202d343
committed
fix: use parentTaskId for telemetry to support history-resumed subtasks
The telemetry properties were using task?.parentTask?.taskId and
!!task.parentTask, but when a subtask is resumed from history via
reopenParentFromDelegation, the live parentTask reference is undefined
(since the parent was disposed). The parentTaskId string is always
correctly set from the persisted historyItem.
Changed to use the persisted parentTaskId instead of the live reference.1 parent 8a8f811 commit 202d343
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2906 | 2906 | | |
2907 | 2907 | | |
2908 | 2908 | | |
2909 | | - | |
| 2909 | + | |
2910 | 2910 | | |
2911 | 2911 | | |
2912 | 2912 | | |
2913 | | - | |
| 2913 | + | |
2914 | 2914 | | |
2915 | 2915 | | |
2916 | 2916 | | |
| |||
0 commit comments