Skip to content

Commit c60f7c9

Browse files
Apply suggestions from code review
Co-authored-by: Varsha <52667690+GSVarsha@users.noreply.github.com> Signed-off-by: Rafal-Chrzanowski-IBM <Rafal.Chrzanowski@ibm.com>
1 parent b188b97 commit c60f7c9

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/instana/instrumentation/httpx.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def handle_request_with_instana(
8686
tracer.inject(span.context, Format.HTTP_HEADERS, request.headers)
8787
except Exception:
8888
logger.exception(
89-
"httpx handle_request_with_instana pre-request:", exc_info=True
89+
"httpx handle_request_with_instana:", exc_info=True
9090
)
9191

9292
try:
@@ -96,7 +96,6 @@ def handle_request_with_instana(
9696
raise
9797

9898
_set_response_span_attributes(span, response) # Has its own try-except
99-
10099
return response
101100

102101
@wrapt.patch_function_wrapper("httpx", "AsyncHTTPTransport.handle_async_request")
@@ -122,7 +121,7 @@ async def handle_async_request_with_instana(
122121
tracer.inject(span.context, Format.HTTP_HEADERS, request.headers)
123122
except Exception:
124123
logger.exception(
125-
"httpx handle_async_request_with_instana pre-request:",
124+
"httpx handle_async_request_with_instana:",
126125
exc_info=True,
127126
)
128127

@@ -133,7 +132,6 @@ async def handle_async_request_with_instana(
133132
raise
134133

135134
_set_response_span_attributes(span, response) # Has its own try-except
136-
137135
return response
138136

139137
logger.debug("Instrumenting httpx")

0 commit comments

Comments
 (0)