-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(aiohttp): add client integration #3362
Conversation
a8b0d49
to
9f83f21
Compare
@Kyle-Verhoog this pull request is now in conflict 😩 |
9f83f21
to
a452f40
Compare
tests/snapshots/tests.contrib.aiohttp.test_aiohttp_client.test_200_request.json
Outdated
Show resolved
Hide resolved
c9f3a6e
to
38dff42
Compare
38dff42
to
be80036
Compare
dab7b75
to
38ab5c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some minor nits, otherwise looking good
38ab5c9
to
64d5d7f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
64d5d7f
to
64ee9e0
Compare
d0c8985
to
012f140
Compare
Since the integration was orignially written a bunch of things have changed including integration conventions, async support, 1.0 deprecations/removals/moves and more. The StreamReader patching is omitted for now and can be introduced later.
012f140
to
192b61e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3rd ✅
Codecov Report
@@ Coverage Diff @@
## 1.x #3362 +/- ##
==========================================
+ Coverage 79.46% 79.53% +0.06%
==========================================
Files 615 617 +2
Lines 46427 46609 +182
==========================================
+ Hits 36895 37069 +174
- Misses 9532 9540 +8
Continue to review full report at Codecov.
|
@Mergifyio backport 0.x 1.0 |
✅ Backports have been created
|
This PR adds support for aiohttp client. Work was long ago started on this in (#294 (thank you @thehesiod!!!). There were a number of issues in the library that led to not being able to merge in the work such as async context management, service naming, integration configuration and more which have all since been addressed. #294 and later #1372 included additional support for ClientResponse and StreamReader which are omitted here with the intention of introducing them as follow ups. Co-authored-by: Alexander Mohr <[email protected]>
This PR adds support for aiohttp client. Work was long ago started on this in (#294 (thank you @thehesiod!!!). There were a number of issues in the library that led to not being able to merge in the work such as async context management, service naming, integration configuration and more which have all since been addressed. Co-authored-by: Alexander Mohr <[email protected]> (cherry picked from commit 2ac1fc9)
This PR adds support for aiohttp client. Work was long ago started on this in (#294 (thank you @thehesiod!!!). There were a number of issues in the library that led to not being able to merge in the work such as async context management, service naming, integration configuration and more which have all since been addressed. #294 and later #1372 included additional support for ClientResponse and StreamReader which are omitted here with the intention of introducing them as follow ups. Co-authored-by: Alexander Mohr <[email protected]> Co-authored-by: Kyle Verhoog <[email protected]> Co-authored-by: Alexander Mohr <[email protected]>
* feat(aiohttp): add client integration (#3362) This PR adds support for aiohttp client. Work was long ago started on this in (#294 (thank you @thehesiod!!!). There were a number of issues in the library that led to not being able to merge in the work such as async context management, service naming, integration configuration and more which have all since been addressed. Co-authored-by: Alexander Mohr <[email protected]> (cherry picked from commit 2ac1fc9) * Update ddtrace/contrib/aiohttp/__init__.py Co-authored-by: Kyle Verhoog <[email protected]> Co-authored-by: Brett Langdon <[email protected]>
@Kyle-Verhoog are there links for follow-up PR or issues? |
hey @thehesiod! We have not followed up yet for the |
Integration
This PR adds support for
aiohttp
client.Work was long ago started on this in (#294 (thank you @thehesiod!!!). There were a number of issues in the library that led to not being able to merge in the work such as async context management, service naming, integration configuration and more which have all since been addressed.
#294 and later #1372 included additional support for
ClientResponse
andStreamReader
which are omitted here with the intention of introducing them as follow ups.Links
Checklist
__init__.py
,docs/index.rst
anddocs/integrations.rst
.int_service
orext_service
).ddtrace.config
entry is specified.trace_utils.set_http_meta
to set http tagspytest
fixtures found intests/conftest.py
or the test helpers onTracerTestCase
ifwriting
unittest
style test cases..circleci/config.yml
).test_django_patch.py
for an example).