Skip to content

Commit

Permalink
Remove frameworks that only work in Python 2.7 (#1205)
Browse files Browse the repository at this point in the history
* Remove umemcache

* Remove oursql

* Remove pywapi

* Remove pywapi

* Remove pylons

* Remove web2py

* Remove references to webpy

* Remove weberror
  • Loading branch information
lrafeei authored Sep 9, 2024
1 parent 968fc4d commit 8c1a4b9
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 575 deletions.
7 changes: 0 additions & 7 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,13 @@ ignore:
- "newrelic/hooks/adapter_meinheld.py"
- "newrelic/hooks/adapter_paste.py"
- "newrelic/hooks/component_piston.py"
- "newrelic/hooks/database_oursql.py"
- "newrelic/hooks/database_psycopg2ct.py"
- "newrelic/hooks/datastore_aioredis.py"
- "newrelic/hooks/datastore_aredis.py"
- "newrelic/hooks/datastore_motor.py"
- "newrelic/hooks/datastore_pyelasticsearch.py"
- "newrelic/hooks/datastore_umemcache.py"
- "newrelic/hooks/external_dropbox.py"
- "newrelic/hooks/external_facepy.py"
- "newrelic/hooks/external_pywapi.py"
- "newrelic/hooks/external_xmlrpclib.py"
- "newrelic/hooks/framework_pylons.py"
- "newrelic/hooks/framework_web2py.py"
- "newrelic/hooks/framework_webpy.py"
- "newrelic/hooks/middleware_weberror.py"
- "newrelic/packages/*"
- "newrelic/packages/**/*"
39 changes: 0 additions & 39 deletions newrelic/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2795,26 +2795,6 @@ def _process_module_builtin_defaults():
"sentry_sdk.integrations.asgi", "newrelic.hooks.component_sentry", "instrument_sentry_sdk_integrations_asgi"
)

# _process_module_definition('web.application',
# 'newrelic.hooks.framework_webpy')
# _process_module_definition('web.template',
# 'newrelic.hooks.framework_webpy')

_process_module_definition(
"gluon.compileapp",
"newrelic.hooks.framework_web2py",
"instrument_gluon_compileapp",
)
_process_module_definition(
"gluon.restricted",
"newrelic.hooks.framework_web2py",
"instrument_gluon_restricted",
)
_process_module_definition("gluon.main", "newrelic.hooks.framework_web2py", "instrument_gluon_main")
_process_module_definition("gluon.template", "newrelic.hooks.framework_web2py", "instrument_gluon_template")
_process_module_definition("gluon.tools", "newrelic.hooks.framework_web2py", "instrument_gluon_tools")
_process_module_definition("gluon.http", "newrelic.hooks.framework_web2py", "instrument_gluon_http")

_process_module_definition("httpx._client", "newrelic.hooks.external_httpx", "instrument_httpx_client")

_process_module_definition("gluon.contrib.feedparser", "newrelic.hooks.external_feedparser")
Expand Down Expand Up @@ -2978,10 +2958,6 @@ def _process_module_builtin_defaults():
_process_module_definition("grpc._channel", "newrelic.hooks.framework_grpc", "instrument_grpc__channel")
_process_module_definition("grpc._server", "newrelic.hooks.framework_grpc", "instrument_grpc_server")

_process_module_definition("pylons.wsgiapp", "newrelic.hooks.framework_pylons")
_process_module_definition("pylons.controllers.core", "newrelic.hooks.framework_pylons")
_process_module_definition("pylons.templating", "newrelic.hooks.framework_pylons")

_process_module_definition("bottle", "newrelic.hooks.framework_bottle", "instrument_bottle")

_process_module_definition(
Expand Down Expand Up @@ -3086,7 +3062,6 @@ def _process_module_builtin_defaults():

_process_module_definition("mysql.connector", "newrelic.hooks.database_mysql", "instrument_mysql_connector")
_process_module_definition("MySQLdb", "newrelic.hooks.database_mysqldb", "instrument_mysqldb")
_process_module_definition("oursql", "newrelic.hooks.database_oursql", "instrument_oursql")
_process_module_definition("pymysql", "newrelic.hooks.database_pymysql", "instrument_pymysql")

_process_module_definition("pyodbc", "newrelic.hooks.database_pyodbc", "instrument_pyodbc")
Expand Down Expand Up @@ -3171,7 +3146,6 @@ def _process_module_builtin_defaults():
)

_process_module_definition("memcache", "newrelic.hooks.datastore_memcache", "instrument_memcache")
_process_module_definition("umemcache", "newrelic.hooks.datastore_umemcache", "instrument_umemcache")
_process_module_definition(
"pylibmc.client",
"newrelic.hooks.datastore_pylibmc",
Expand Down Expand Up @@ -4407,8 +4381,6 @@ def _process_module_builtin_defaults():
"instrument_flup_server_scgi_base",
)

_process_module_definition("pywapi", "newrelic.hooks.external_pywapi", "instrument_pywapi")

_process_module_definition(
"meinheld.server",
"newrelic.hooks.adapter_meinheld",
Expand Down Expand Up @@ -4471,17 +4443,6 @@ def _process_module_builtin_defaults():

_process_module_definition("gevent.monkey", "newrelic.hooks.coroutines_gevent", "instrument_gevent_monkey")

_process_module_definition(
"weberror.errormiddleware",
"newrelic.hooks.middleware_weberror",
"instrument_weberror_errormiddleware",
)
_process_module_definition(
"weberror.reporter",
"newrelic.hooks.middleware_weberror",
"instrument_weberror_reporter",
)

_process_module_definition("thrift.transport.TSocket", "newrelic.hooks.external_thrift")

_process_module_definition(
Expand Down
43 changes: 0 additions & 43 deletions newrelic/hooks/database_oursql.py

This file was deleted.

80 changes: 0 additions & 80 deletions newrelic/hooks/datastore_umemcache.py

This file was deleted.

37 changes: 0 additions & 37 deletions newrelic/hooks/external_pywapi.py

This file was deleted.

85 changes: 0 additions & 85 deletions newrelic/hooks/framework_pylons.py

This file was deleted.

Loading

0 comments on commit 8c1a4b9

Please sign in to comment.