We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d42afab commit 5161633Copy full SHA for 5161633
specification/trace/semantic_conventions/http.md
@@ -46,8 +46,11 @@ default span name.
46
the response body; or 3xx codes with max redirects exceeded), in which case status
47
MUST be set to `Error`.
48
49
-For HTTP status codes in the 4xx and 5xx ranges, as well as any other code the client
50
-failed to interpret, status MUST be set to `Error`.
+For HTTP status codes in the 4xx range span status MUST be left unset in case of `SpanKind.SERVER`
+and MUST be set to `Error` in case of `SpanKind.CLIENT`.
51
+
52
+For HTTP status codes in the 5xx range, as well as any other code the client
53
+failed to interpret, span status MUST be set to `Error`.
54
55
Don't set the span status description if the reason can be inferred from `http.status_code`.
56
0 commit comments