You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have used workflow-core in my project and now I wanna to log all the events and queries in the APM in Kibana dashboard. I could capture each step in the RunAsync() method, but I want to log whole the workflow including all the steps and any event raising in it. Please let me know if there is any advice or any vague point in my question.
here is my code in RunAsync() :
public override async Task<ExecutionResult> RunAsync(IStepExecutionContext context)
{
var src = new ActivitySource("XResolvingStepActivitySource");
var tracer = Agent.Tracer;
await tracer.CaptureTransaction("XResolvingStepRun", "WorkFlowSteps", async t =>
{
using (var activity = src.StartActivity("XResolvingStepRun"))
{
tracer.CurrentSpan.CaptureSpan("ElasticApmSpan", "WorkFlowSteps", () => Thread.Sleep(50));
await XResolvingStepOnRunAsync(context);
}
});
return ExecutionResult.Next();
}
//XResolvingStepOnRunAsync() method is the logic, and it doesn't provide any useful info for this question.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have used workflow-core in my project and now I wanna to log all the events and queries in the APM in Kibana dashboard. I could capture each step in the RunAsync() method, but I want to log whole the workflow including all the steps and any event raising in it. Please let me know if there is any advice or any vague point in my question.
here is my code in RunAsync() :
Beta Was this translation helpful? Give feedback.
All reactions