Skip to content

Commit

Permalink
Fix set status to not use deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
ejsmith committed Nov 14, 2024
1 parent 7d0c56c commit bff07e9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Exceptionless.Web/ApmExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ public static IHostBuilder AddApm(this IHostBuilder builder, ApmConfig config)
// 404s should not be error
if (activity.GetTagItem("http.status_code") is 404)
{
#pragma warning disable CS0618 // Type or member is obsolete
activity.SetStatus(Status.Unset);
#pragma warning restore CS0618 // Type or member is obsolete
activity.SetStatus(ActivityStatusCode.Unset);
}
};
});
Expand Down

0 comments on commit bff07e9

Please sign in to comment.