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.
9 lines
215 B
C#
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;
|
|
} |