You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by to...@apache.org on 2021/10/29 10:56:26 UTC

[skywalking-python] branch master updated: fix aiohttp outgoing request url (#175)

This is an automated email from the ASF dual-hosted git repository.

tompytel pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-python.git


The following commit(s) were added to refs/heads/master by this push:
     new 53066d8  fix aiohttp outgoing request url (#175)
53066d8 is described below

commit 53066d8ccadbe3d6b3e5d534e8e2aade77fec15d
Author: Tomasz Pytel <to...@gmail.com>
AuthorDate: Fri Oct 29 07:56:19 2021 -0300

    fix aiohttp outgoing request url (#175)
    
    Co-authored-by: kezhenxu94 <ke...@apache.org>
---
 .gitignore                       | 1 +
 skywalking/plugins/sw_aiohttp.py | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index bbc1313..a5c82c9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -29,3 +29,4 @@ dist/
 **/venv/
 tests/**/requirements.txt
 skywalking/protocol
+.vscode/
\ No newline at end of file
diff --git a/skywalking/plugins/sw_aiohttp.py b/skywalking/plugins/sw_aiohttp.py
index 8978ce0..e387ec8 100644
--- a/skywalking/plugins/sw_aiohttp.py
+++ b/skywalking/plugins/sw_aiohttp.py
@@ -47,7 +47,7 @@ def install():
         with span:
             span.layer = Layer.Http
             span.tag(TagHttpMethod(method.upper()))  # pyre-ignore
-            span.tag(TagHttpURL(url))  # pyre-ignore
+            span.tag(TagHttpURL(str(url.with_password(None))))  # pyre-ignore
 
             carrier = span.inject()
             headers = kwargs.get('headers')