From b5d01cf18e0ecb1522d204e570dba3c7e1d21fc8 Mon Sep 17 00:00:00 2001 From: Owais Lone Date: Tue, 27 Apr 2021 18:19:20 +0530 Subject: [PATCH] Instrumentation: Use runtime dependency checks --- .../opentelemetry-instrumentation-aiohttp-client/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-aiopg/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-asgi/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-asyncpg/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-boto/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-botocore/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-celery/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-dbapi/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-django/setup.py | 2 +- .../opentelemetry-instrumentation-elasticsearch/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-falcon/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-fastapi/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-flask/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-grpc/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-jinja2/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-logging/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-mysql/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-psycopg2/setup.py | 2 +- .../opentelemetry-instrumentation-pymemcache/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-pymongo/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-pymysql/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-pyramid/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-redis/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-requests/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-sklearn/setup.py | 2 +- .../opentelemetry-instrumentation-sqlalchemy/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-sqlite3/setup.py | 2 +- .../opentelemetry-instrumentation-starlette/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-tornado/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-urllib/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-urllib3/setup.py | 2 +- instrumentation/opentelemetry-instrumentation-wsgi/setup.py | 2 +- 32 files changed, 32 insertions(+), 32 deletions(-) diff --git a/instrumentation/opentelemetry-instrumentation-aiohttp-client/setup.py b/instrumentation/opentelemetry-instrumentation-aiohttp-client/setup.py index f8f9608d7c..824db2983e 100644 --- a/instrumentation/opentelemetry-instrumentation-aiohttp-client/setup.py +++ b/instrumentation/opentelemetry-instrumentation-aiohttp-client/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-aiopg/setup.py b/instrumentation/opentelemetry-instrumentation-aiopg/setup.py index d9167a767a..35b33958ef 100644 --- a/instrumentation/opentelemetry-instrumentation-aiopg/setup.py +++ b/instrumentation/opentelemetry-instrumentation-aiopg/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-asgi/setup.py b/instrumentation/opentelemetry-instrumentation-asgi/setup.py index 41f0be0460..f89c65f0a2 100644 --- a/instrumentation/opentelemetry-instrumentation-asgi/setup.py +++ b/instrumentation/opentelemetry-instrumentation-asgi/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-asyncpg/setup.py b/instrumentation/opentelemetry-instrumentation-asyncpg/setup.py index 4efaf6c1db..785d822287 100644 --- a/instrumentation/opentelemetry-instrumentation-asyncpg/setup.py +++ b/instrumentation/opentelemetry-instrumentation-asyncpg/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-boto/setup.py b/instrumentation/opentelemetry-instrumentation-boto/setup.py index fadd304a5a..0d99cc8926 100644 --- a/instrumentation/opentelemetry-instrumentation-boto/setup.py +++ b/instrumentation/opentelemetry-instrumentation-boto/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-botocore/setup.py b/instrumentation/opentelemetry-instrumentation-botocore/setup.py index 77097caf4f..5317443224 100644 --- a/instrumentation/opentelemetry-instrumentation-botocore/setup.py +++ b/instrumentation/opentelemetry-instrumentation-botocore/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-celery/setup.py b/instrumentation/opentelemetry-instrumentation-celery/setup.py index d1b39a290f..c4a01d212a 100644 --- a/instrumentation/opentelemetry-instrumentation-celery/setup.py +++ b/instrumentation/opentelemetry-instrumentation-celery/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-dbapi/setup.py b/instrumentation/opentelemetry-instrumentation-dbapi/setup.py index 0661f029ee..2c1d28b951 100644 --- a/instrumentation/opentelemetry-instrumentation-dbapi/setup.py +++ b/instrumentation/opentelemetry-instrumentation-dbapi/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-django/setup.py b/instrumentation/opentelemetry-instrumentation-django/setup.py index 6c29567154..5a425c0e5a 100644 --- a/instrumentation/opentelemetry-instrumentation-django/setup.py +++ b/instrumentation/opentelemetry-instrumentation-django/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-elasticsearch/setup.py b/instrumentation/opentelemetry-instrumentation-elasticsearch/setup.py index dad9fe91df..41914e50a8 100644 --- a/instrumentation/opentelemetry-instrumentation-elasticsearch/setup.py +++ b/instrumentation/opentelemetry-instrumentation-elasticsearch/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-falcon/setup.py b/instrumentation/opentelemetry-instrumentation-falcon/setup.py index 71743e58eb..ca770e9260 100644 --- a/instrumentation/opentelemetry-instrumentation-falcon/setup.py +++ b/instrumentation/opentelemetry-instrumentation-falcon/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-fastapi/setup.py b/instrumentation/opentelemetry-instrumentation-fastapi/setup.py index fb00c74451..a56f7434a0 100644 --- a/instrumentation/opentelemetry-instrumentation-fastapi/setup.py +++ b/instrumentation/opentelemetry-instrumentation-fastapi/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-flask/setup.py b/instrumentation/opentelemetry-instrumentation-flask/setup.py index bc88e30167..251d905739 100644 --- a/instrumentation/opentelemetry-instrumentation-flask/setup.py +++ b/instrumentation/opentelemetry-instrumentation-flask/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-grpc/setup.py b/instrumentation/opentelemetry-instrumentation-grpc/setup.py index 9af0788ed3..aaac587baa 100644 --- a/instrumentation/opentelemetry-instrumentation-grpc/setup.py +++ b/instrumentation/opentelemetry-instrumentation-grpc/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-jinja2/setup.py b/instrumentation/opentelemetry-instrumentation-jinja2/setup.py index 1fe98ad245..f89c545429 100644 --- a/instrumentation/opentelemetry-instrumentation-jinja2/setup.py +++ b/instrumentation/opentelemetry-instrumentation-jinja2/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-logging/setup.py b/instrumentation/opentelemetry-instrumentation-logging/setup.py index 8cf426ca96..38f3826d33 100644 --- a/instrumentation/opentelemetry-instrumentation-logging/setup.py +++ b/instrumentation/opentelemetry-instrumentation-logging/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-mysql/setup.py b/instrumentation/opentelemetry-instrumentation-mysql/setup.py index fa343d5a3a..ba396f9ffb 100644 --- a/instrumentation/opentelemetry-instrumentation-mysql/setup.py +++ b/instrumentation/opentelemetry-instrumentation-mysql/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-psycopg2/setup.py b/instrumentation/opentelemetry-instrumentation-psycopg2/setup.py index f68d32dfbe..077f70345b 100644 --- a/instrumentation/opentelemetry-instrumentation-psycopg2/setup.py +++ b/instrumentation/opentelemetry-instrumentation-psycopg2/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-pymemcache/setup.py b/instrumentation/opentelemetry-instrumentation-pymemcache/setup.py index 13f4499eb5..2964e4c7a6 100644 --- a/instrumentation/opentelemetry-instrumentation-pymemcache/setup.py +++ b/instrumentation/opentelemetry-instrumentation-pymemcache/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-pymongo/setup.py b/instrumentation/opentelemetry-instrumentation-pymongo/setup.py index e545457b00..23ea29503b 100644 --- a/instrumentation/opentelemetry-instrumentation-pymongo/setup.py +++ b/instrumentation/opentelemetry-instrumentation-pymongo/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-pymysql/setup.py b/instrumentation/opentelemetry-instrumentation-pymysql/setup.py index db998c97fd..2da219349a 100644 --- a/instrumentation/opentelemetry-instrumentation-pymysql/setup.py +++ b/instrumentation/opentelemetry-instrumentation-pymysql/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-pyramid/setup.py b/instrumentation/opentelemetry-instrumentation-pyramid/setup.py index 38afc9697d..20790df8c1 100644 --- a/instrumentation/opentelemetry-instrumentation-pyramid/setup.py +++ b/instrumentation/opentelemetry-instrumentation-pyramid/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-redis/setup.py b/instrumentation/opentelemetry-instrumentation-redis/setup.py index fe9fc10d06..bc90b25aa8 100644 --- a/instrumentation/opentelemetry-instrumentation-redis/setup.py +++ b/instrumentation/opentelemetry-instrumentation-redis/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-requests/setup.py b/instrumentation/opentelemetry-instrumentation-requests/setup.py index 3c21a3328f..c8e36d3b1f 100644 --- a/instrumentation/opentelemetry-instrumentation-requests/setup.py +++ b/instrumentation/opentelemetry-instrumentation-requests/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-sklearn/setup.py b/instrumentation/opentelemetry-instrumentation-sklearn/setup.py index ec550e2f65..8aec671b8d 100644 --- a/instrumentation/opentelemetry-instrumentation-sklearn/setup.py +++ b/instrumentation/opentelemetry-instrumentation-sklearn/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-sqlalchemy/setup.py b/instrumentation/opentelemetry-instrumentation-sqlalchemy/setup.py index 1d8e4d3961..90170b54a7 100644 --- a/instrumentation/opentelemetry-instrumentation-sqlalchemy/setup.py +++ b/instrumentation/opentelemetry-instrumentation-sqlalchemy/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-sqlite3/setup.py b/instrumentation/opentelemetry-instrumentation-sqlite3/setup.py index ccbb6ba31a..1ea62e9c0a 100644 --- a/instrumentation/opentelemetry-instrumentation-sqlite3/setup.py +++ b/instrumentation/opentelemetry-instrumentation-sqlite3/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-starlette/setup.py b/instrumentation/opentelemetry-instrumentation-starlette/setup.py index 8bc87ae6e5..f7c28941c1 100644 --- a/instrumentation/opentelemetry-instrumentation-starlette/setup.py +++ b/instrumentation/opentelemetry-instrumentation-starlette/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-tornado/setup.py b/instrumentation/opentelemetry-instrumentation-tornado/setup.py index d6d7415ede..018b4773b3 100644 --- a/instrumentation/opentelemetry-instrumentation-tornado/setup.py +++ b/instrumentation/opentelemetry-instrumentation-tornado/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-urllib/setup.py b/instrumentation/opentelemetry-instrumentation-urllib/setup.py index eacc21733f..bebd64a09f 100644 --- a/instrumentation/opentelemetry-instrumentation-urllib/setup.py +++ b/instrumentation/opentelemetry-instrumentation-urllib/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-urllib3/setup.py b/instrumentation/opentelemetry-instrumentation-urllib3/setup.py index f301d4fad0..99c2c04396 100644 --- a/instrumentation/opentelemetry-instrumentation-urllib3/setup.py +++ b/instrumentation/opentelemetry-instrumentation-urllib3/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools diff --git a/instrumentation/opentelemetry-instrumentation-wsgi/setup.py b/instrumentation/opentelemetry-instrumentation-wsgi/setup.py index 73e9f65430..2ee7cfbfcf 100644 --- a/instrumentation/opentelemetry-instrumentation-wsgi/setup.py +++ b/instrumentation/opentelemetry-instrumentation-wsgi/setup.py @@ -17,9 +17,9 @@ # RUN `python scripts/generate_setup.py` TO REGENERATE. +import os import distutils.cmd import json -import os from configparser import ConfigParser import setuptools