We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e530900 commit bb7b4acCopy full SHA for bb7b4ac
src/WorkflowCore/Services/WorkflowActivity.cs
@@ -35,6 +35,20 @@ internal static Activity StartPoll(string type)
35
36
return activity;
37
}
38
+
39
+ internal static void Enrich(WorkflowInstance workflow, string action)
40
+ {
41
+ var activity = Activity.Current;
42
+ if (activity != null)
43
44
+ activity.DisplayName = $"workflow {action} {workflow.WorkflowDefinitionId}";
45
+ activity.SetTag("workflow.id", workflow.Id);
46
+ activity.SetTag("workflow.definition", workflow.WorkflowDefinitionId);
47
+ activity.SetTag("workflow.status", workflow.Status);
48
+ }
49
50
51
52
internal static void Enrich(WorkflowStep workflowStep)
53
{
54
var activity = Activity.Current;
0 commit comments