Skip to content

Commit

Permalink
Fixed format
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalSenn committed Aug 11, 2024
1 parent d751863 commit 9af71dd
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -587,10 +587,15 @@ public virtual void EnrichDataLoaderBatch<TKey>(

protected virtual void EnrichError(IError error, Activity activity)
{
var tags = new ActivityTagsCollection()
if (error.Exception is { } exception)
{
activity.RecordException(exception);
}

var tags = new ActivityTagsCollection
{
new(AttributeExceptionMessage, error.Message),
new(AttributeExceptionType, error.Code),
new(AttributeExceptionType, error.Code)
};

if (error.Locations is { Count: > 0, })
Expand Down

0 comments on commit 9af71dd

Please sign in to comment.