Skip to content

Commit 40eea2b

Browse files
authored
WP: Don't set status ERROR on 404 response (#416)
1 parent a0d6027 commit 40eea2b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Instrumentation/Wordpress/src/WordpressInstrumentation.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ function_exists('is_admin') && $span->setAttribute('wp.is_admin', is_admin());
115115

116116
if (function_exists('is_404') && is_404()) {
117117
$span->setAttribute(TraceAttributes::HTTP_RESPONSE_STATUS_CODE, 404);
118-
$span->setStatus(StatusCode::STATUS_ERROR);
119118
}
120119
//@todo check for other errors?
121120

0 commit comments

Comments
 (0)