Skip to content

Commit

Permalink
Update to include new WorkflowInstance method from master
Browse files Browse the repository at this point in the history
  • Loading branch information
jakenuts committed Aug 1, 2024
1 parent e530900 commit bb7b4ac
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/WorkflowCore/Services/WorkflowActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,20 @@ internal static Activity StartPoll(string type)

return activity;
}

internal static void Enrich(WorkflowInstance workflow, string action)
{
var activity = Activity.Current;
if (activity != null)
{
activity.DisplayName = $"workflow {action} {workflow.WorkflowDefinitionId}";
activity.SetTag("workflow.id", workflow.Id);
activity.SetTag("workflow.definition", workflow.WorkflowDefinitionId);
activity.SetTag("workflow.status", workflow.Status);
}
}


internal static void Enrich(WorkflowStep workflowStep)
{
var activity = Activity.Current;
Expand Down

0 comments on commit bb7b4ac

Please sign in to comment.