Skip to content

Commit bff07e9

Browse files
committed
Fix set status to not use deprecated method
1 parent 7d0c56c commit bff07e9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Exceptionless.Web/ApmExtensions.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ public static IHostBuilder AddApm(this IHostBuilder builder, ApmConfig config)
7070
// 404s should not be error
7171
if (activity.GetTagItem("http.status_code") is 404)
7272
{
73-
#pragma warning disable CS0618 // Type or member is obsolete
74-
activity.SetStatus(Status.Unset);
75-
#pragma warning restore CS0618 // Type or member is obsolete
73+
activity.SetStatus(ActivityStatusCode.Unset);
7674
}
7775
};
7876
});

0 commit comments

Comments
 (0)