Remove redundant span tags for activity and workflow incidents
The tags "activity.incidents" and "workflow.incidents" were removed as they are unnecessary and provide no additional value. This change simplifies the middleware implementation while retaining essential telemetry data.
This commit is contained in:
parent
2d485d253d
commit
9b0aa9d922
|
|
@ -49,7 +49,6 @@ public class OpenTelemetryTracingActivityExecutionMiddleware(ActivityMiddlewareD
|
|||
{
|
||||
span.AddEvent(new("faulted"));
|
||||
span.SetStatus(ActivityStatusCode.Error);
|
||||
span.SetTag("activity.incidents", true);
|
||||
|
||||
var errorSpanHandlerContext = new ErrorSpanContext(span, context.Exception);
|
||||
var errorSpanHandler = context.GetServices<IErrorSpanHandler>()
|
||||
|
|
|
|||
|
|
@ -91,7 +91,6 @@ public class OpenTelemetryTracingWorkflowExecutionMiddleware(WorkflowMiddlewareD
|
|||
|
||||
if (context.Incidents.Any())
|
||||
{
|
||||
span.SetTag("workflow.incidents", true);
|
||||
span.SetTag("workflow.incidents.count", context.Incidents.Count);
|
||||
|
||||
foreach (var incident in context.Incidents)
|
||||
|
|
|
|||
Loading…
Reference in a new issue