Skip to content

Commit 10ba8f1

Browse files
committed
otel.status_code=ERROR got lost in the rebase against 0.14
1 parent e52f03f commit 10ba8f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/response.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ impl Response {
8181
}
8282
}
8383
}
84+
8485
let status = response.status();
8586
let exception_code = response.headers().get("X-ClickHouse-Exception-Code");
8687

@@ -90,6 +91,7 @@ impl Response {
9091
// It still can fail, but we'll handle it in `DetectDbException`.
9192
Ok(Chunks::new(response.into_body(), compression, inner_span))
9293
} else {
94+
inner_span.record("otel.status_code", "ERROR");
9395
// An instantly failed request.
9496
Err(collect_bad_response(
9597
status,

0 commit comments

Comments
 (0)