Skip to content

Commit

Permalink
WIP: depends on PR 475
Browse files Browse the repository at this point in the history
wip

wip
  • Loading branch information
owais committed May 27, 2021
1 parent 04a959f commit 9b726cb
Show file tree
Hide file tree
Showing 35 changed files with 13 additions and 66 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
2 changes: 0 additions & 2 deletions instrumentation/opentelemetry-instrumentation-aiopg/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
2 changes: 0 additions & 2 deletions instrumentation/opentelemetry-instrumentation-asgi/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
2 changes: 0 additions & 2 deletions instrumentation/opentelemetry-instrumentation-boto/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
2 changes: 0 additions & 2 deletions instrumentation/opentelemetry-instrumentation-celery/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
2 changes: 0 additions & 2 deletions instrumentation/opentelemetry-instrumentation-dbapi/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
2 changes: 0 additions & 2 deletions instrumentation/opentelemetry-instrumentation-django/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
2 changes: 0 additions & 2 deletions instrumentation/opentelemetry-instrumentation-falcon/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
2 changes: 0 additions & 2 deletions instrumentation/opentelemetry-instrumentation-flask/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
2 changes: 0 additions & 2 deletions instrumentation/opentelemetry-instrumentation-grpc/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
2 changes: 0 additions & 2 deletions instrumentation/opentelemetry-instrumentation-jinja2/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
2 changes: 0 additions & 2 deletions instrumentation/opentelemetry-instrumentation-mysql/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
2 changes: 0 additions & 2 deletions instrumentation/opentelemetry-instrumentation-redis/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
2 changes: 0 additions & 2 deletions instrumentation/opentelemetry-instrumentation-urllib/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
2 changes: 0 additions & 2 deletions instrumentation/opentelemetry-instrumentation-wsgi/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# RUN `python scripts/generate_setup.py` TO REGENERATE.


import distutils.cmd
import json
import os
import distutils.cmd
import json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# limitations under the License.


_instruments = tuple()
_instruments = ("wsgiref ~= 0.1.2",)
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,17 @@ def _is_installed(req):
return False
return True

try:
pkg_resources.get_distribution(req)
except pkg_resources.DistributionNotFound:
return False
except pkg_resources.VersionConflict as exc:
logger.warning(
"instrumentation for package %s is available but version %s is installed. Skipping."
% (exc.req, exc.dist.as_requirement())
)
return False
return True

def _find_installed_libraries():
libs = default_instrumentations[:]
Expand Down
2 changes: 1 addition & 1 deletion templates/instrumentation_setup.py.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class JSONMetadataCommand(distutils.cmd.Command):


setuptools.setup(
cmdclass={'meta': JSONMetadataCommand},
cmdclass={'meta': JSONMetadataCommand},
version=PACKAGE_INFO["__version__"],
extras_require=extras_require
)

0 comments on commit 9b726cb

Please sign in to comment.