elsa-core/src/modules/Elsa.OpenTelemetry/Models/ErrorSpanContext.cs
Sipke Schoorstra 07119c8ff5
Add OpenTelemetry error span handling infrastructure
Introduce infrastructure for handling error spans with OpenTelemetry, including `DefaultErrorSpanHandler` and `FaultExceptionErrorSpanHandler`. Define core abstractions (`ErrorSpanHandlerBase`, `IErrorSpanHandler`) and utilities for customizing OpenTelemetry integration. This enables improved error tracing and categorization in workflows.
2025-02-20 20:33:55 +01:00

9 lines
215 B
C#

using System.Diagnostics;
namespace Elsa.OpenTelemetry.Models;
public class ErrorSpanContext(Activity span, Exception? exception)
{
public Activity Span => span;
public Exception? Exception => exception;
}