Skip to content

Commit 53066d8

Browse files
fix aiohttp outgoing request url (apache#175)
Co-authored-by: kezhenxu94 <kezhenxu94@apache.org>
1 parent 0af1e57 commit 53066d8

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ dist/
2929
**/venv/
3030
tests/**/requirements.txt
3131
skywalking/protocol
32+
.vscode/

skywalking/plugins/sw_aiohttp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async def _sw_request(self: ClientSession, method: str, str_or_url, **kwargs):
4747
with span:
4848
span.layer = Layer.Http
4949
span.tag(TagHttpMethod(method.upper())) # pyre-ignore
50-
span.tag(TagHttpURL(url)) # pyre-ignore
50+
span.tag(TagHttpURL(str(url.with_password(None)))) # pyre-ignore
5151

5252
carrier = span.inject()
5353
headers = kwargs.get('headers')

0 commit comments

Comments
 (0)