Files
agent-framework/dotnet/src/Microsoft.Agents.AI.Workflows/Observability/EdgeRunnerDeliveryStatus.cs
T
Tao ChenandGitHub 042099009f .NET: Workflow observability (#959)
* Add basic Workflow telemetry

* Add sample

* Add source propagation for executor spans

* Fix tests and address comments

* Fix formatting

* Fix declarative unit tests

* Address comments

* Remove Microsoft.Extensions.AI.Agents.EnableTelemetry

* Formatting

* Formatting

* Formatting

* fix solution

* Address comments

* Add workflow json definition for serialization

* Formmating

* Address comments
2025-09-30 23:40:04 +00:00

31 lines
986 B
C#

// Copyright (c) Microsoft. All rights reserved.
namespace Microsoft.Agents.AI.Workflows.Observability;
internal enum EdgeRunnerDeliveryStatus
{
Delivered,
DroppedTypeMismatch,
DroppedTargetMismatch,
DroppedConditionFalse,
Exception,
Buffered
}
internal static class EdgeRunnerDeliveryStatusExtensions
{
public static string ToStringValue(this EdgeRunnerDeliveryStatus status)
{
return status switch
{
EdgeRunnerDeliveryStatus.Delivered => "delivered",
EdgeRunnerDeliveryStatus.DroppedTypeMismatch => "dropped type mismatch",
EdgeRunnerDeliveryStatus.DroppedTargetMismatch => "dropped target mismatch",
EdgeRunnerDeliveryStatus.DroppedConditionFalse => "dropped condition false",
EdgeRunnerDeliveryStatus.Exception => "exception",
EdgeRunnerDeliveryStatus.Buffered => "buffered",
_ => throw new System.NotImplementedException(),
};
}
}