mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-28 04:34:01 +08:00
aiohttp: aiohttp client (#421)
Adding initial aiohttp client. This module is only supported on Python3.5, which is the oldest supported by aiohttp. Co-authored-by: Yusuke Tsutsumi <yusuke@tsutsumi.io>
This commit is contained in:
@ -12,6 +12,8 @@ function cov {
|
|||||||
${1}
|
${1}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PYTHON_VERSION=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:3])))')
|
||||||
|
PYTHON_VERSION_INFO=(${PYTHON_VERSION//./ })
|
||||||
|
|
||||||
coverage erase
|
coverage erase
|
||||||
|
|
||||||
@ -25,5 +27,10 @@ cov ext/opentelemetry-ext-wsgi
|
|||||||
cov ext/opentelemetry-ext-zipkin
|
cov ext/opentelemetry-ext-zipkin
|
||||||
cov docs/examples/opentelemetry-example-app
|
cov docs/examples/opentelemetry-example-app
|
||||||
|
|
||||||
coverage report
|
# aiohttp is only supported on Python 3.5+.
|
||||||
|
if [ ${PYTHON_VERSION_INFO[1]} -gt 4 ]; then
|
||||||
|
cov ext/opentelemetry-ext-aiohttp-client
|
||||||
|
fi
|
||||||
|
|
||||||
|
coverage report --show-missing
|
||||||
coverage xml
|
coverage xml
|
||||||
|
Reference in New Issue
Block a user