Skip to content

Commit 2b76b45

Browse files
feat: add a debug log with the response when self-instrumentation's otlp communication returns unsuccessful response (#1237)
1 parent 26f7008 commit 2b76b45

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

agent-control/src/http/client.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,13 @@ impl opentelemetry_http::HttpClient for HttpClient {
149149
let bytes_body = Bytes::from(body);
150150
let resp_vec = Response::from_parts(parts, bytes_body);
151151

152+
if !resp_vec.status().is_success() {
153+
warn!(
154+
"Self instrumentation Otlp sending unsuccessful: {:?}",
155+
resp_vec
156+
);
157+
}
158+
152159
Ok(resp_vec)
153160
}
154161
}

0 commit comments

Comments
 (0)