Skip to content

Commit 5f1845d

Browse files
authored
Use augmented assignment statements (#797)
Fixes #796
1 parent d4ad8f5 commit 5f1845d

File tree

1 file changed

+1
-1
lines changed
  • instrumentation/opentelemetry-instrumentation-asgi/src/opentelemetry/instrumentation/asgi

1 file changed

+1
-1
lines changed

instrumentation/opentelemetry-instrumentation-asgi/src/opentelemetry/instrumentation/asgi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def collect_request_attributes(scope):
160160
if query_string and http_url:
161161
if isinstance(query_string, bytes):
162162
query_string = query_string.decode("utf8")
163-
http_url = http_url + ("?" + urllib.parse.unquote(query_string))
163+
http_url += "?" + urllib.parse.unquote(query_string)
164164

165165
result = {
166166
SpanAttributes.HTTP_SCHEME: scope.get("scheme"),

0 commit comments

Comments
 (0)