From 35f1e5bbdfb1b1ae2da74f9cc9d70b6ea41895d3 Mon Sep 17 00:00:00 2001 From: joshuahlang Date: Wed, 6 May 2020 20:40:47 -0700 Subject: [PATCH] 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 --- scripts/coverage.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/coverage.sh b/scripts/coverage.sh index 839380c27..1ff42d9e5 100755 --- a/scripts/coverage.sh +++ b/scripts/coverage.sh @@ -12,6 +12,8 @@ function cov { ${1} } +PYTHON_VERSION=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:3])))') +PYTHON_VERSION_INFO=(${PYTHON_VERSION//./ }) coverage erase @@ -25,5 +27,10 @@ cov ext/opentelemetry-ext-wsgi cov ext/opentelemetry-ext-zipkin 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