Skip to content

Commit 0774003

Browse files
authored
Fix sw8 loss when use aiohttp. (#299)
* Bugfix. when headers is not MultiDict or MultiDictProxy,should put headers back in kwargs. * Update CHANGELOG.md
1 parent 128278a commit 0774003

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
- Feature:
66
- Add a new workflow to push docker images for arm64 and amd64
77

8+
- Fixes:
9+
- Fix sw8 loss when use aiohttp.(#299,issue#10669)
10+
811
### 1.0.0
912

1013
- **Important Note and Breaking Changes:**

skywalking/plugins/sw_aiohttp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ async def _sw_request(self: ClientSession, method: str, str_or_url, **kwargs):
5555
headers = kwargs['headers'] = CIMultiDict()
5656
elif not isinstance(headers, (MultiDictProxy, MultiDict)):
5757
headers = CIMultiDict(headers)
58+
kwargs['headers'] = headers
5859

5960
for item in carrier:
6061
headers.add(item.key, item.val)

0 commit comments

Comments
 (0)