Skip to content

Commit 5c170ea

Browse files
author
Liudmila Molkova
committed
clean up after rebase
1 parent b236658 commit 5c170ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdk/clientcore/core/src/main/java/io/clientcore/core/http/pipeline/HttpInstrumentationPolicy.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,9 @@ private void addDetails(HttpRequest request, Response<?> response, Span span) {
244244

245245
span.setAttribute(HTTP_RESPONSE_STATUS_CODE, (long) response.getStatusCode());
246246

247-
int retryCount = HttpRequestAccessHelper.getRetryCount(request);
248-
if (retryCount > 1) {
249-
span.setAttribute(HTTP_REQUEST_RESEND_COUNT, (long) HttpRequestAccessHelper.getRetryCount(request) - 1);
247+
int tryCount = HttpRequestAccessHelper.getTryCount(request);
248+
if (tryCount > 0) {
249+
span.setAttribute(HTTP_REQUEST_RESEND_COUNT, (long) tryCount);
250250
}
251251

252252
String userAgent = request.getHeaders().getValue(HttpHeaderName.USER_AGENT);

0 commit comments

Comments
 (0)