Skip to content

Commit

Permalink
OpenTelemetry: NPE in HttpInstrumenterVertxTracer.RouteGetter when re…
Browse files Browse the repository at this point in the history
…quest got cancelled

Refactor following code review

Signed-off-by: Theodor Mihalache <[email protected]>
  • Loading branch information
tmihalac committed Jul 24, 2022
1 parent 61a0a6f commit 5b3269b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,12 @@ public Long requestContentLengthUncompressed(final HttpRequest request, final Ht

@Override
public Integer statusCode(final HttpRequest request, final HttpResponse response) {
return response != null ? response.statusCode() : 499;
return response != null ? response.statusCode() : null;
}

@Override
public Long responseContentLength(final HttpRequest request, final HttpResponse response) {
return response != null ? getContentLength(response.headers()) : 0;
return response != null ? getContentLength(response.headers()) : null;
}

@Override
Expand Down

0 comments on commit 5b3269b

Please sign in to comment.