You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2023/04/14 06:05:58 UTC
[skywalking-python] branch master updated: Fix sw8 loss when use aiohttp. (#299)
This is an automated email from the ASF dual-hosted git repository.
wusheng 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 0774003 Fix sw8 loss when use aiohttp. (#299)
0774003 is described below
commit 077400367e4a4f8e82ce56e472c6cb34a0a81abd
Author: leo <xi...@163.com>
AuthorDate: Fri Apr 14 14:05:53 2023 +0800
Fix sw8 loss when use aiohttp. (#299)
* Bugfix. when headers is not MultiDict or MultiDictProxy,should put headers back in kwargs.
* Update CHANGELOG.md
---
CHANGELOG.md | 3 +++
skywalking/plugins/sw_aiohttp.py | 1 +
2 files changed, 4 insertions(+)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cb1aee1..9cf85e0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,9 @@
- Feature:
- Add a new workflow to push docker images for arm64 and amd64
+- Fixes:
+ - Fix sw8 loss when use aiohttp.(#299,issue#10669)
+
### 1.0.0
- **Important Note and Breaking Changes:**
diff --git a/skywalking/plugins/sw_aiohttp.py b/skywalking/plugins/sw_aiohttp.py
index 28566f0..0833ee9 100644
--- a/skywalking/plugins/sw_aiohttp.py
+++ b/skywalking/plugins/sw_aiohttp.py
@@ -55,6 +55,7 @@ def install():
headers = kwargs['headers'] = CIMultiDict()
elif not isinstance(headers, (MultiDictProxy, MultiDict)):
headers = CIMultiDict(headers)
+ kwargs['headers'] = headers
for item in carrier:
headers.add(item.key, item.val)