newrelic / newrelic-python-agent

New Relic Python Agent
https://docs.newrelic.com/docs/agents/python-agent
Apache License 2.0
178 stars 102 forks source link

Warning emitted when starting gunicorn with `newrelic-admin run-program` #678

Closed anze3db closed 1 year ago

anze3db commented 2 years ago

Description We are getting the following warning when we run gunicorn with newrelic-admin run-program:

2022-10-27 15:25:49,898 (30653/MainThread) newrelic.core.agent WARNING - Attempt to activate application in a process different to where the agent harvest thread was started. No data will be reported for this process with pid of 30653. Creation of the harvest thread this application occurred in process with pid 30652. If no data at all is being reported for your application, see https://docs.newrelic.com/docs/agents/python-agent/troubleshooting/activate-application-warning-python for troubleshooting steps. If the issue persists, please send debug logs to New Relic support for assistance.

Expected Behavior The warning is not shown or a workaround is provided where the warning is not shown.

Steps to Reproduce

pip install gunicorn newrelic
echo '
def app(environ, start_response):
    data = b"Hello, World!\\n"
    start_response(
        "200 OK", [("Content-Type", "text/plain"), ("Content-Length", str(len(data)))]
    )
    return iter([data])
' > myapp.py
NEW_RELIC_LICENSE_KEY=secret NEW_RELIC_LOG=stdout NEW_RELIC_LOG_LEVEL=info newrelic-admin run-program gunicorn -w 1 myapp:app

The warning will be shown when you open localhost:8000 in the browser.

Your Environment

python --version
Python 3.10.6
pip list
Package    Version
---------- -------
gunicorn   20.1.0
newrelic   8.4.0
pip        22.3
setuptools 63.2.0

Additional context

Even though this warning is emitted we are still seeing data in our new-relic dashboard, but we are still worried that perhaps not everything is being logged correctly.

Also this warning has generated 1.6k events in Sentry in our web app since yesterday.

The full debug log:

NEW_RELIC_LICENSE_KEY=secret NEW_RELIC_LOG=stdout NEW_RELIC_LOG_LEVEL=debug newrelic-admin run-program gunicorn -w 1 myapp:app
2022-10-27 15:37:03,793 (32028/MainThread) newrelic DEBUG - Initializing Python agent stdout logging.
2022-10-27 15:37:03,855 (32028/MainThread) newrelic.config DEBUG - register module ('greenlet', 'newrelic.core.trace_cache', 'greenlet_loaded')
2022-10-27 15:37:03,855 (32028/MainThread) newrelic.config DEBUG - register module ('asyncio', 'newrelic.core.trace_cache', 'asyncio_loaded')
2022-10-27 15:37:03,855 (32028/MainThread) newrelic.config DEBUG - register module ('asyncio.base_events', 'newrelic.hooks.coroutines_asyncio', 'instrument_asyncio_base_events')
2022-10-27 15:37:03,856 (32028/MainThread) newrelic.config DEBUG - register module ('asyncio.events', 'newrelic.hooks.coroutines_asyncio', 'instrument_asyncio_events')
2022-10-27 15:37:03,856 (32028/MainThread) newrelic.config DEBUG - register module ('asgiref.sync', 'newrelic.hooks.adapter_asgiref', 'instrument_asgiref_sync')
2022-10-27 15:37:03,856 (32028/MainThread) newrelic.config DEBUG - register module ('django.core.handlers.base', 'newrelic.hooks.framework_django', 'instrument_django_core_handlers_base')
2022-10-27 15:37:03,856 (32028/MainThread) newrelic.config DEBUG - register module ('django.core.handlers.asgi', 'newrelic.hooks.framework_django', 'instrument_django_core_handlers_asgi')
2022-10-27 15:37:03,856 (32028/MainThread) newrelic.config DEBUG - register module ('django.core.handlers.wsgi', 'newrelic.hooks.framework_django', 'instrument_django_core_handlers_wsgi')
2022-10-27 15:37:03,856 (32028/MainThread) newrelic.config DEBUG - register module ('django.core.urlresolvers', 'newrelic.hooks.framework_django', 'instrument_django_core_urlresolvers')
2022-10-27 15:37:03,856 (32028/MainThread) newrelic.config DEBUG - register module ('django.template', 'newrelic.hooks.framework_django', 'instrument_django_template')
2022-10-27 15:37:03,856 (32028/MainThread) newrelic.config DEBUG - register module ('django.template.loader_tags', 'newrelic.hooks.framework_django', 'instrument_django_template_loader_tags')
2022-10-27 15:37:03,856 (32028/MainThread) newrelic.config DEBUG - register module ('django.core.servers.basehttp', 'newrelic.hooks.framework_django', 'instrument_django_core_servers_basehttp')
2022-10-27 15:37:03,856 (32028/MainThread) newrelic.config DEBUG - register module ('django.contrib.staticfiles.views', 'newrelic.hooks.framework_django', 'instrument_django_contrib_staticfiles_views')
2022-10-27 15:37:03,856 (32028/MainThread) newrelic.config DEBUG - register module ('django.contrib.staticfiles.handlers', 'newrelic.hooks.framework_django', 'instrument_django_contrib_staticfiles_handlers')
2022-10-27 15:37:03,856 (32028/MainThread) newrelic.config DEBUG - register module ('django.views.debug', 'newrelic.hooks.framework_django', 'instrument_django_views_debug')
2022-10-27 15:37:03,856 (32028/MainThread) newrelic.config DEBUG - register module ('django.http.multipartparser', 'newrelic.hooks.framework_django', 'instrument_django_http_multipartparser')
2022-10-27 15:37:03,856 (32028/MainThread) newrelic.config DEBUG - register module ('django.core.mail', 'newrelic.hooks.framework_django', 'instrument_django_core_mail')
2022-10-27 15:37:03,856 (32028/MainThread) newrelic.config DEBUG - register module ('django.core.mail.message', 'newrelic.hooks.framework_django', 'instrument_django_core_mail_message')
2022-10-27 15:37:03,857 (32028/MainThread) newrelic.config DEBUG - register module ('django.views.generic.base', 'newrelic.hooks.framework_django', 'instrument_django_views_generic_base')
2022-10-27 15:37:03,857 (32028/MainThread) newrelic.config DEBUG - register module ('django.core.management.base', 'newrelic.hooks.framework_django', 'instrument_django_core_management_base')
2022-10-27 15:37:03,857 (32028/MainThread) newrelic.config DEBUG - register module ('django.template.base', 'newrelic.hooks.framework_django', 'instrument_django_template_base')
2022-10-27 15:37:03,857 (32028/MainThread) newrelic.config DEBUG - register module ('django.middleware.gzip', 'newrelic.hooks.framework_django', 'instrument_django_gzip_middleware')
2022-10-27 15:37:03,857 (32028/MainThread) newrelic.config DEBUG - register module ('django.urls.resolvers', 'newrelic.hooks.framework_django', 'instrument_django_core_urlresolvers')
2022-10-27 15:37:03,857 (32028/MainThread) newrelic.config DEBUG - register module ('django.urls.base', 'newrelic.hooks.framework_django', 'instrument_django_urls_base')
2022-10-27 15:37:03,857 (32028/MainThread) newrelic.config DEBUG - register module ('django.core.handlers.exception', 'newrelic.hooks.framework_django', 'instrument_django_core_handlers_exception')
2022-10-27 15:37:03,857 (32028/MainThread) newrelic.config DEBUG - register module ('falcon.api', 'newrelic.hooks.framework_falcon', 'instrument_falcon_api')
2022-10-27 15:37:03,857 (32028/MainThread) newrelic.config DEBUG - register module ('falcon.app', 'newrelic.hooks.framework_falcon', 'instrument_falcon_app')
2022-10-27 15:37:03,857 (32028/MainThread) newrelic.config DEBUG - register module ('falcon.routing.util', 'newrelic.hooks.framework_falcon', 'instrument_falcon_routing_util')
2022-10-27 15:37:03,857 (32028/MainThread) newrelic.config DEBUG - register module ('fastapi.routing', 'newrelic.hooks.framework_fastapi', 'instrument_fastapi_routing')
2022-10-27 15:37:03,857 (32028/MainThread) newrelic.config DEBUG - register module ('flask.app', 'newrelic.hooks.framework_flask', 'instrument_flask_app')
2022-10-27 15:37:03,857 (32028/MainThread) newrelic.config DEBUG - register module ('flask.templating', 'newrelic.hooks.framework_flask', 'instrument_flask_templating')
2022-10-27 15:37:03,857 (32028/MainThread) newrelic.config DEBUG - register module ('flask.blueprints', 'newrelic.hooks.framework_flask', 'instrument_flask_blueprints')
2022-10-27 15:37:03,857 (32028/MainThread) newrelic.config DEBUG - register module ('flask.views', 'newrelic.hooks.framework_flask', 'instrument_flask_views')
2022-10-27 15:37:03,857 (32028/MainThread) newrelic.config DEBUG - register module ('flask_compress', 'newrelic.hooks.middleware_flask_compress', 'instrument_flask_compress')
2022-10-27 15:37:03,857 (32028/MainThread) newrelic.config DEBUG - register module ('flask_restful', 'newrelic.hooks.component_flask_rest', 'instrument_flask_rest')
2022-10-27 15:37:03,857 (32028/MainThread) newrelic.config DEBUG - register module ('flask_restplus.api', 'newrelic.hooks.component_flask_rest', 'instrument_flask_rest')
2022-10-27 15:37:03,857 (32028/MainThread) newrelic.config DEBUG - register module ('flask_restx.api', 'newrelic.hooks.component_flask_rest', 'instrument_flask_rest')
2022-10-27 15:37:03,858 (32028/MainThread) newrelic.config DEBUG - register module ('graphql_server', 'newrelic.hooks.component_graphqlserver', 'instrument_graphqlserver')
2022-10-27 15:37:03,858 (32028/MainThread) newrelic.config DEBUG - register module ('gluon.compileapp', 'newrelic.hooks.framework_web2py', 'instrument_gluon_compileapp')
2022-10-27 15:37:03,858 (32028/MainThread) newrelic.config DEBUG - register module ('gluon.restricted', 'newrelic.hooks.framework_web2py', 'instrument_gluon_restricted')
2022-10-27 15:37:03,858 (32028/MainThread) newrelic.config DEBUG - register module ('gluon.main', 'newrelic.hooks.framework_web2py', 'instrument_gluon_main')
2022-10-27 15:37:03,858 (32028/MainThread) newrelic.config DEBUG - register module ('gluon.template', 'newrelic.hooks.framework_web2py', 'instrument_gluon_template')
2022-10-27 15:37:03,858 (32028/MainThread) newrelic.config DEBUG - register module ('gluon.tools', 'newrelic.hooks.framework_web2py', 'instrument_gluon_tools')
2022-10-27 15:37:03,858 (32028/MainThread) newrelic.config DEBUG - register module ('gluon.http', 'newrelic.hooks.framework_web2py', 'instrument_gluon_http')
2022-10-27 15:37:03,858 (32028/MainThread) newrelic.config DEBUG - register module ('httpx._client', 'newrelic.hooks.external_httpx', 'instrument_httpx_client')
2022-10-27 15:37:03,858 (32028/MainThread) newrelic.config DEBUG - register module ('gluon.contrib.feedparser', 'newrelic.hooks.external_feedparser', 'instrument')
2022-10-27 15:37:03,858 (32028/MainThread) newrelic.config DEBUG - register module ('gluon.contrib.memcache.memcache', 'newrelic.hooks.memcache_memcache', 'instrument')
2022-10-27 15:37:03,858 (32028/MainThread) newrelic.config DEBUG - register module ('graphene.types.schema', 'newrelic.hooks.framework_graphene', 'instrument_graphene_types_schema')
2022-10-27 15:37:03,858 (32028/MainThread) newrelic.config DEBUG - register module ('graphql.graphql', 'newrelic.hooks.framework_graphql', 'instrument_graphql')
2022-10-27 15:37:03,858 (32028/MainThread) newrelic.config DEBUG - register module ('graphql.execution.execute', 'newrelic.hooks.framework_graphql', 'instrument_graphql_execute')
2022-10-27 15:37:03,858 (32028/MainThread) newrelic.config DEBUG - register module ('graphql.execution.executor', 'newrelic.hooks.framework_graphql', 'instrument_graphql_execute')
2022-10-27 15:37:03,858 (32028/MainThread) newrelic.config DEBUG - register module ('graphql.execution.middleware', 'newrelic.hooks.framework_graphql', 'instrument_graphql_execution_middleware')
2022-10-27 15:37:03,859 (32028/MainThread) newrelic.config DEBUG - register module ('graphql.execution.utils', 'newrelic.hooks.framework_graphql', 'instrument_graphql_execution_utils')
2022-10-27 15:37:03,859 (32028/MainThread) newrelic.config DEBUG - register module ('graphql.error.located_error', 'newrelic.hooks.framework_graphql', 'instrument_graphql_error_located_error')
2022-10-27 15:37:03,859 (32028/MainThread) newrelic.config DEBUG - register module ('graphql.language.parser', 'newrelic.hooks.framework_graphql', 'instrument_graphql_parser')
2022-10-27 15:37:03,859 (32028/MainThread) newrelic.config DEBUG - register module ('graphql.validation.validate', 'newrelic.hooks.framework_graphql', 'instrument_graphql_validate')
2022-10-27 15:37:03,859 (32028/MainThread) newrelic.config DEBUG - register module ('graphql.validation.validation', 'newrelic.hooks.framework_graphql', 'instrument_graphql_validate')
2022-10-27 15:37:03,859 (32028/MainThread) newrelic.config DEBUG - register module ('ariadne.asgi', 'newrelic.hooks.framework_ariadne', 'instrument_ariadne_asgi')
2022-10-27 15:37:03,859 (32028/MainThread) newrelic.config DEBUG - register module ('ariadne.graphql', 'newrelic.hooks.framework_ariadne', 'instrument_ariadne_execute')
2022-10-27 15:37:03,859 (32028/MainThread) newrelic.config DEBUG - register module ('ariadne.wsgi', 'newrelic.hooks.framework_ariadne', 'instrument_ariadne_wsgi')
2022-10-27 15:37:03,859 (32028/MainThread) newrelic.config DEBUG - register module ('grpc._channel', 'newrelic.hooks.framework_grpc', 'instrument_grpc__channel')
2022-10-27 15:37:03,859 (32028/MainThread) newrelic.config DEBUG - register module ('grpc._server', 'newrelic.hooks.framework_grpc', 'instrument_grpc_server')
2022-10-27 15:37:03,859 (32028/MainThread) newrelic.config DEBUG - register module ('pylons.wsgiapp', 'newrelic.hooks.framework_pylons', 'instrument')
2022-10-27 15:37:03,859 (32028/MainThread) newrelic.config DEBUG - register module ('pylons.controllers.core', 'newrelic.hooks.framework_pylons', 'instrument')
2022-10-27 15:37:03,859 (32028/MainThread) newrelic.config DEBUG - register module ('pylons.templating', 'newrelic.hooks.framework_pylons', 'instrument')
2022-10-27 15:37:03,859 (32028/MainThread) newrelic.config DEBUG - register module ('bottle', 'newrelic.hooks.framework_bottle', 'instrument_bottle')
2022-10-27 15:37:03,859 (32028/MainThread) newrelic.config DEBUG - register module ('cherrypy._cpreqbody', 'newrelic.hooks.framework_cherrypy', 'instrument_cherrypy__cpreqbody')
2022-10-27 15:37:03,859 (32028/MainThread) newrelic.config DEBUG - register module ('cherrypy._cprequest', 'newrelic.hooks.framework_cherrypy', 'instrument_cherrypy__cprequest')
2022-10-27 15:37:03,859 (32028/MainThread) newrelic.config DEBUG - register module ('cherrypy._cpdispatch', 'newrelic.hooks.framework_cherrypy', 'instrument_cherrypy__cpdispatch')
2022-10-27 15:37:03,859 (32028/MainThread) newrelic.config DEBUG - register module ('cherrypy._cpwsgi', 'newrelic.hooks.framework_cherrypy', 'instrument_cherrypy__cpwsgi')
2022-10-27 15:37:03,859 (32028/MainThread) newrelic.config DEBUG - register module ('cherrypy._cptree', 'newrelic.hooks.framework_cherrypy', 'instrument_cherrypy__cptree')
2022-10-27 15:37:03,859 (32028/MainThread) newrelic.config DEBUG - register module ('confluent_kafka.cimpl', 'newrelic.hooks.messagebroker_confluentkafka', 'instrument_confluentkafka_cimpl')
2022-10-27 15:37:03,859 (32028/MainThread) newrelic.config DEBUG - register module ('confluent_kafka.serializing_producer', 'newrelic.hooks.messagebroker_confluentkafka', 'instrument_confluentkafka_serializing_producer')
2022-10-27 15:37:03,860 (32028/MainThread) newrelic.config DEBUG - register module ('confluent_kafka.deserializing_consumer', 'newrelic.hooks.messagebroker_confluentkafka', 'instrument_confluentkafka_deserializing_consumer')
2022-10-27 15:37:03,860 (32028/MainThread) newrelic.config DEBUG - register module ('kafka.consumer.group', 'newrelic.hooks.messagebroker_kafkapython', 'instrument_kafka_consumer_group')
2022-10-27 15:37:03,860 (32028/MainThread) newrelic.config DEBUG - register module ('kafka.producer.kafka', 'newrelic.hooks.messagebroker_kafkapython', 'instrument_kafka_producer')
2022-10-27 15:37:03,860 (32028/MainThread) newrelic.config DEBUG - register module ('kafka.coordinator.heartbeat', 'newrelic.hooks.messagebroker_kafkapython', 'instrument_kafka_heartbeat')
2022-10-27 15:37:03,860 (32028/MainThread) newrelic.config DEBUG - register module ('logging', 'newrelic.hooks.logger_logging', 'instrument_logging')
2022-10-27 15:37:03,860 (32028/MainThread) newrelic.config DEBUG - instrument module (<module 'logging' from '/Users/anze/.pyenv/versions/3.10.6/lib/python3.10/logging/__init__.py'>, 'newrelic.hooks.logger_logging', 'instrument_logging')
2022-10-27 15:37:03,860 (32028/MainThread) newrelic.config DEBUG - register module ('loguru', 'newrelic.hooks.logger_loguru', 'instrument_loguru')
2022-10-27 15:37:03,860 (32028/MainThread) newrelic.config DEBUG - register module ('loguru._logger', 'newrelic.hooks.logger_loguru', 'instrument_loguru_logger')
2022-10-27 15:37:03,861 (32028/MainThread) newrelic.config DEBUG - register module ('paste.httpserver', 'newrelic.hooks.adapter_paste', 'instrument_paste_httpserver')
2022-10-27 15:37:03,861 (32028/MainThread) newrelic.config DEBUG - register module ('gunicorn.app.base', 'newrelic.hooks.adapter_gunicorn', 'instrument_gunicorn_app_base')
2022-10-27 15:37:03,861 (32028/MainThread) newrelic.config DEBUG - register module ('cx_Oracle', 'newrelic.hooks.database_cx_oracle', 'instrument_cx_oracle')
2022-10-27 15:37:03,861 (32028/MainThread) newrelic.config DEBUG - register module ('ibm_db_dbi', 'newrelic.hooks.database_ibm_db_dbi', 'instrument_ibm_db_dbi')
2022-10-27 15:37:03,861 (32028/MainThread) newrelic.config DEBUG - register module ('mysql.connector', 'newrelic.hooks.database_mysql', 'instrument_mysql_connector')
2022-10-27 15:37:03,861 (32028/MainThread) newrelic.config DEBUG - register module ('MySQLdb', 'newrelic.hooks.database_mysqldb', 'instrument_mysqldb')
2022-10-27 15:37:03,861 (32028/MainThread) newrelic.config DEBUG - register module ('oursql', 'newrelic.hooks.database_oursql', 'instrument_oursql')
2022-10-27 15:37:03,861 (32028/MainThread) newrelic.config DEBUG - register module ('pymysql', 'newrelic.hooks.database_pymysql', 'instrument_pymysql')
2022-10-27 15:37:03,861 (32028/MainThread) newrelic.config DEBUG - register module ('pyodbc', 'newrelic.hooks.database_pyodbc', 'instrument_pyodbc')
2022-10-27 15:37:03,861 (32028/MainThread) newrelic.config DEBUG - register module ('pymssql', 'newrelic.hooks.database_pymssql', 'instrument_pymssql')
2022-10-27 15:37:03,868 (32028/MainThread) newrelic.config DEBUG - register module ('psycopg2', 'newrelic.hooks.database_psycopg2', 'instrument_psycopg2')
2022-10-27 15:37:03,868 (32028/MainThread) newrelic.config DEBUG - register module ('psycopg2._psycopg2', 'newrelic.hooks.database_psycopg2', 'instrument_psycopg2__psycopg2')
2022-10-27 15:37:03,868 (32028/MainThread) newrelic.config DEBUG - register module ('psycopg2.extensions', 'newrelic.hooks.database_psycopg2', 'instrument_psycopg2_extensions')
2022-10-27 15:37:03,868 (32028/MainThread) newrelic.config DEBUG - register module ('psycopg2._json', 'newrelic.hooks.database_psycopg2', 'instrument_psycopg2__json')
2022-10-27 15:37:03,868 (32028/MainThread) newrelic.config DEBUG - register module ('psycopg2._range', 'newrelic.hooks.database_psycopg2', 'instrument_psycopg2__range')
2022-10-27 15:37:03,868 (32028/MainThread) newrelic.config DEBUG - register module ('psycopg2.sql', 'newrelic.hooks.database_psycopg2', 'instrument_psycopg2_sql')
2022-10-27 15:37:03,868 (32028/MainThread) newrelic.config DEBUG - register module ('psycopg2ct', 'newrelic.hooks.database_psycopg2ct', 'instrument_psycopg2ct')
2022-10-27 15:37:03,868 (32028/MainThread) newrelic.config DEBUG - register module ('psycopg2ct.extensions', 'newrelic.hooks.database_psycopg2ct', 'instrument_psycopg2ct_extensions')
2022-10-27 15:37:03,869 (32028/MainThread) newrelic.config DEBUG - register module ('psycopg2cffi', 'newrelic.hooks.database_psycopg2cffi', 'instrument_psycopg2cffi')
2022-10-27 15:37:03,869 (32028/MainThread) newrelic.config DEBUG - register module ('psycopg2cffi.extensions', 'newrelic.hooks.database_psycopg2cffi', 'instrument_psycopg2cffi_extensions')
2022-10-27 15:37:03,869 (32028/MainThread) newrelic.config DEBUG - register module ('asyncpg.connect_utils', 'newrelic.hooks.database_asyncpg', 'instrument_asyncpg_connect_utils')
2022-10-27 15:37:03,869 (32028/MainThread) newrelic.config DEBUG - register module ('asyncpg.protocol', 'newrelic.hooks.database_asyncpg', 'instrument_asyncpg_protocol')
2022-10-27 15:37:03,869 (32028/MainThread) newrelic.config DEBUG - register module ('postgresql.driver.dbapi20', 'newrelic.hooks.database_postgresql', 'instrument_postgresql_driver_dbapi20')
2022-10-27 15:37:03,869 (32028/MainThread) newrelic.config DEBUG - register module ('postgresql.interface.proboscis.dbapi2', 'newrelic.hooks.database_postgresql', 'instrument_postgresql_interface_proboscis_dbapi2')
2022-10-27 15:37:03,869 (32028/MainThread) newrelic.config DEBUG - register module ('sqlite3', 'newrelic.hooks.database_sqlite', 'instrument_sqlite3')
2022-10-27 15:37:03,869 (32028/MainThread) newrelic.config DEBUG - register module ('sqlite3.dbapi2', 'newrelic.hooks.database_sqlite', 'instrument_sqlite3_dbapi2')
2022-10-27 15:37:03,869 (32028/MainThread) newrelic.config DEBUG - register module ('pysqlite2', 'newrelic.hooks.database_sqlite', 'instrument_sqlite3')
2022-10-27 15:37:03,869 (32028/MainThread) newrelic.config DEBUG - register module ('pysqlite2.dbapi2', 'newrelic.hooks.database_sqlite', 'instrument_sqlite3_dbapi2')
2022-10-27 15:37:03,869 (32028/MainThread) newrelic.config DEBUG - register module ('memcache', 'newrelic.hooks.datastore_memcache', 'instrument_memcache')
2022-10-27 15:37:03,869 (32028/MainThread) newrelic.config DEBUG - register module ('umemcache', 'newrelic.hooks.datastore_umemcache', 'instrument_umemcache')
2022-10-27 15:37:03,869 (32028/MainThread) newrelic.config DEBUG - register module ('pylibmc.client', 'newrelic.hooks.datastore_pylibmc', 'instrument_pylibmc_client')
2022-10-27 15:37:03,869 (32028/MainThread) newrelic.config DEBUG - register module ('bmemcached.client', 'newrelic.hooks.datastore_bmemcached', 'instrument_bmemcached_client')
2022-10-27 15:37:03,869 (32028/MainThread) newrelic.config DEBUG - register module ('pymemcache.client', 'newrelic.hooks.datastore_pymemcache', 'instrument_pymemcache_client')
2022-10-27 15:37:03,869 (32028/MainThread) newrelic.config DEBUG - register module ('jinja2.environment', 'newrelic.hooks.template_jinja2', 'instrument')
2022-10-27 15:37:03,869 (32028/MainThread) newrelic.config DEBUG - register module ('mako.runtime', 'newrelic.hooks.template_mako', 'instrument_mako_runtime')
2022-10-27 15:37:03,869 (32028/MainThread) newrelic.config DEBUG - register module ('mako.template', 'newrelic.hooks.template_mako', 'instrument_mako_template')
2022-10-27 15:37:03,870 (32028/MainThread) newrelic.config DEBUG - register module ('genshi.template.base', 'newrelic.hooks.template_genshi', 'instrument')
2022-10-27 15:37:03,870 (32028/MainThread) newrelic.config DEBUG - register module ('http.client', 'newrelic.hooks.external_httplib', 'instrument')
2022-10-27 15:37:03,870 (32028/MainThread) newrelic.config DEBUG - instrument module (<module 'newrelic.packages.urllib3.packages.six.moves.http_client' (<newrelic.packages.urllib3.packages.six._SixMetaPathImporter object at 0x10248a170>)>, 'newrelic.hooks.external_httplib', 'instrument')
2022-10-27 15:37:03,870 (32028/MainThread) newrelic.config DEBUG - register module ('httplib2', 'newrelic.hooks.external_httplib2', 'instrument')
2022-10-27 15:37:03,870 (32028/MainThread) newrelic.config DEBUG - register module ('urllib.request', 'newrelic.hooks.external_urllib', 'instrument')
2022-10-27 15:37:03,870 (32028/MainThread) newrelic.config DEBUG - register module ('urllib3.connectionpool', 'newrelic.hooks.external_urllib3', 'instrument_urllib3_connectionpool')
2022-10-27 15:37:03,870 (32028/MainThread) newrelic.config DEBUG - register module ('urllib3.connection', 'newrelic.hooks.external_urllib3', 'instrument_urllib3_connection')
2022-10-27 15:37:03,870 (32028/MainThread) newrelic.config DEBUG - register module ('requests.packages.urllib3.connection', 'newrelic.hooks.external_urllib3', 'instrument_urllib3_connection')
2022-10-27 15:37:03,870 (32028/MainThread) newrelic.config DEBUG - register module ('starlette.requests', 'newrelic.hooks.framework_starlette', 'instrument_starlette_requests')
2022-10-27 15:37:03,870 (32028/MainThread) newrelic.config DEBUG - register module ('starlette.routing', 'newrelic.hooks.framework_starlette', 'instrument_starlette_routing')
2022-10-27 15:37:03,870 (32028/MainThread) newrelic.config DEBUG - register module ('starlette.applications', 'newrelic.hooks.framework_starlette', 'instrument_starlette_applications')
2022-10-27 15:37:03,870 (32028/MainThread) newrelic.config DEBUG - register module ('starlette.middleware.errors', 'newrelic.hooks.framework_starlette', 'instrument_starlette_middleware_errors')
2022-10-27 15:37:03,870 (32028/MainThread) newrelic.config DEBUG - register module ('starlette.middleware.exceptions', 'newrelic.hooks.framework_starlette', 'instrument_starlette_middleware_exceptions')
2022-10-27 15:37:03,871 (32028/MainThread) newrelic.config DEBUG - register module ('starlette.exceptions', 'newrelic.hooks.framework_starlette', 'instrument_starlette_exceptions')
2022-10-27 15:37:03,871 (32028/MainThread) newrelic.config DEBUG - register module ('starlette.background', 'newrelic.hooks.framework_starlette', 'instrument_starlette_background_task')
2022-10-27 15:37:03,871 (32028/MainThread) newrelic.config DEBUG - register module ('starlette.concurrency', 'newrelic.hooks.framework_starlette', 'instrument_starlette_concurrency')
2022-10-27 15:37:03,871 (32028/MainThread) newrelic.config DEBUG - register module ('strawberry.asgi', 'newrelic.hooks.framework_strawberry', 'instrument_strawberry_asgi')
2022-10-27 15:37:03,871 (32028/MainThread) newrelic.config DEBUG - register module ('strawberry.schema.schema', 'newrelic.hooks.framework_strawberry', 'instrument_strawberry_schema')
2022-10-27 15:37:03,871 (32028/MainThread) newrelic.config DEBUG - register module ('strawberry.schema.schema_converter', 'newrelic.hooks.framework_strawberry', 'instrument_strawberry_schema_converter')
2022-10-27 15:37:03,871 (32028/MainThread) newrelic.config DEBUG - register module ('uvicorn.config', 'newrelic.hooks.adapter_uvicorn', 'instrument_uvicorn_config')
2022-10-27 15:37:03,871 (32028/MainThread) newrelic.config DEBUG - register module ('hypercorn.asyncio.run', 'newrelic.hooks.adapter_hypercorn', 'instrument_hypercorn_asyncio_run')
2022-10-27 15:37:03,871 (32028/MainThread) newrelic.config DEBUG - register module ('hypercorn.trio.run', 'newrelic.hooks.adapter_hypercorn', 'instrument_hypercorn_trio_run')
2022-10-27 15:37:03,871 (32028/MainThread) newrelic.config DEBUG - register module ('hypercorn.utils', 'newrelic.hooks.adapter_hypercorn', 'instrument_hypercorn_utils')
2022-10-27 15:37:03,871 (32028/MainThread) newrelic.config DEBUG - register module ('daphne.server', 'newrelic.hooks.adapter_daphne', 'instrument_daphne_server')
2022-10-27 15:37:03,871 (32028/MainThread) newrelic.config DEBUG - register module ('sanic.app', 'newrelic.hooks.framework_sanic', 'instrument_sanic_app')
2022-10-27 15:37:03,871 (32028/MainThread) newrelic.config DEBUG - register module ('sanic.response', 'newrelic.hooks.framework_sanic', 'instrument_sanic_response')
2022-10-27 15:37:03,871 (32028/MainThread) newrelic.config DEBUG - register module ('sanic.touchup.service', 'newrelic.hooks.framework_sanic', 'instrument_sanic_touchup_service')
2022-10-27 15:37:03,871 (32028/MainThread) newrelic.config DEBUG - register module ('aiohttp.wsgi', 'newrelic.hooks.framework_aiohttp', 'instrument_aiohttp_wsgi')
2022-10-27 15:37:03,872 (32028/MainThread) newrelic.config DEBUG - register module ('aiohttp.web', 'newrelic.hooks.framework_aiohttp', 'instrument_aiohttp_web')
2022-10-27 15:37:03,872 (32028/MainThread) newrelic.config DEBUG - register module ('aiohttp.web_reqrep', 'newrelic.hooks.framework_aiohttp', 'instrument_aiohttp_web_response')
2022-10-27 15:37:03,872 (32028/MainThread) newrelic.config DEBUG - register module ('aiohttp.web_response', 'newrelic.hooks.framework_aiohttp', 'instrument_aiohttp_web_response')
2022-10-27 15:37:03,872 (32028/MainThread) newrelic.config DEBUG - register module ('aiohttp.web_urldispatcher', 'newrelic.hooks.framework_aiohttp', 'instrument_aiohttp_web_urldispatcher')
2022-10-27 15:37:03,872 (32028/MainThread) newrelic.config DEBUG - register module ('aiohttp.client', 'newrelic.hooks.framework_aiohttp', 'instrument_aiohttp_client')
2022-10-27 15:37:03,872 (32028/MainThread) newrelic.config DEBUG - register module ('aiohttp.client_reqrep', 'newrelic.hooks.framework_aiohttp', 'instrument_aiohttp_client_reqrep')
2022-10-27 15:37:03,872 (32028/MainThread) newrelic.config DEBUG - register module ('aiohttp.protocol', 'newrelic.hooks.framework_aiohttp', 'instrument_aiohttp_protocol')
2022-10-27 15:37:03,872 (32028/MainThread) newrelic.config DEBUG - register module ('requests.api', 'newrelic.hooks.external_requests', 'instrument_requests_api')
2022-10-27 15:37:03,872 (32028/MainThread) newrelic.config DEBUG - register module ('requests.sessions', 'newrelic.hooks.external_requests', 'instrument_requests_sessions')
2022-10-27 15:37:03,872 (32028/MainThread) newrelic.config DEBUG - register module ('feedparser', 'newrelic.hooks.external_feedparser', 'instrument')
2022-10-27 15:37:03,872 (32028/MainThread) newrelic.config DEBUG - register module ('xmlrpclib', 'newrelic.hooks.external_xmlrpclib', 'instrument')
2022-10-27 15:37:03,872 (32028/MainThread) newrelic.config DEBUG - register module ('dropbox', 'newrelic.hooks.external_dropbox', 'instrument')
2022-10-27 15:37:03,872 (32028/MainThread) newrelic.config DEBUG - register module ('facepy.graph_api', 'newrelic.hooks.external_facepy', 'instrument')
2022-10-27 15:37:03,872 (32028/MainThread) newrelic.config DEBUG - register module ('pysolr', 'newrelic.hooks.datastore_pysolr', 'instrument_pysolr')
2022-10-27 15:37:03,872 (32028/MainThread) newrelic.config DEBUG - register module ('solr', 'newrelic.hooks.datastore_solrpy', 'instrument_solrpy')
2022-10-27 15:37:03,872 (32028/MainThread) newrelic.config DEBUG - register module ('aredis.client', 'newrelic.hooks.datastore_aredis', 'instrument_aredis_client')
2022-10-27 15:37:03,872 (32028/MainThread) newrelic.config DEBUG - register module ('aredis.connection', 'newrelic.hooks.datastore_aredis', 'instrument_aredis_connection')
2022-10-27 15:37:03,873 (32028/MainThread) newrelic.config DEBUG - register module ('aioredis.client', 'newrelic.hooks.datastore_aioredis', 'instrument_aioredis_client')
2022-10-27 15:37:03,873 (32028/MainThread) newrelic.config DEBUG - register module ('aioredis.commands', 'newrelic.hooks.datastore_aioredis', 'instrument_aioredis_client')
2022-10-27 15:37:03,873 (32028/MainThread) newrelic.config DEBUG - register module ('aioredis.connection', 'newrelic.hooks.datastore_aioredis', 'instrument_aioredis_connection')
2022-10-27 15:37:03,873 (32028/MainThread) newrelic.config DEBUG - register module ('elasticsearch.client', 'newrelic.hooks.datastore_elasticsearch', 'instrument_elasticsearch_client')
2022-10-27 15:37:03,873 (32028/MainThread) newrelic.config DEBUG - register module ('elasticsearch.client.cat', 'newrelic.hooks.datastore_elasticsearch', 'instrument_elasticsearch_client_cat')
2022-10-27 15:37:03,873 (32028/MainThread) newrelic.config DEBUG - register module ('elasticsearch.client.cluster', 'newrelic.hooks.datastore_elasticsearch', 'instrument_elasticsearch_client_cluster')
2022-10-27 15:37:03,873 (32028/MainThread) newrelic.config DEBUG - register module ('elasticsearch.client.indices', 'newrelic.hooks.datastore_elasticsearch', 'instrument_elasticsearch_client_indices')
2022-10-27 15:37:03,873 (32028/MainThread) newrelic.config DEBUG - register module ('elasticsearch.client.nodes', 'newrelic.hooks.datastore_elasticsearch', 'instrument_elasticsearch_client_nodes')
2022-10-27 15:37:03,873 (32028/MainThread) newrelic.config DEBUG - register module ('elasticsearch.client.snapshot', 'newrelic.hooks.datastore_elasticsearch', 'instrument_elasticsearch_client_snapshot')
2022-10-27 15:37:03,873 (32028/MainThread) newrelic.config DEBUG - register module ('elasticsearch.client.tasks', 'newrelic.hooks.datastore_elasticsearch', 'instrument_elasticsearch_client_tasks')
2022-10-27 15:37:03,873 (32028/MainThread) newrelic.config DEBUG - register module ('elasticsearch.client.ingest', 'newrelic.hooks.datastore_elasticsearch', 'instrument_elasticsearch_client_ingest')
2022-10-27 15:37:03,873 (32028/MainThread) newrelic.config DEBUG - register module ('elasticsearch.connection.base', 'newrelic.hooks.datastore_elasticsearch', 'instrument_elasticsearch_connection_base')
2022-10-27 15:37:03,873 (32028/MainThread) newrelic.config DEBUG - register module ('elasticsearch.transport', 'newrelic.hooks.datastore_elasticsearch', 'instrument_elasticsearch_transport')
2022-10-27 15:37:03,873 (32028/MainThread) newrelic.config DEBUG - register module ('pika.adapters', 'newrelic.hooks.messagebroker_pika', 'instrument_pika_adapters')
2022-10-27 15:37:03,873 (32028/MainThread) newrelic.config DEBUG - register module ('pika.channel', 'newrelic.hooks.messagebroker_pika', 'instrument_pika_channel')
2022-10-27 15:37:03,873 (32028/MainThread) newrelic.config DEBUG - register module ('pika.spec', 'newrelic.hooks.messagebroker_pika', 'instrument_pika_spec')
2022-10-27 15:37:03,873 (32028/MainThread) newrelic.config DEBUG - register module ('pyelasticsearch.client', 'newrelic.hooks.datastore_pyelasticsearch', 'instrument_pyelasticsearch_client')
2022-10-27 15:37:03,874 (32028/MainThread) newrelic.config DEBUG - register module ('pymongo.connection', 'newrelic.hooks.datastore_pymongo', 'instrument_pymongo_connection')
2022-10-27 15:37:03,874 (32028/MainThread) newrelic.config DEBUG - register module ('pymongo.mongo_client', 'newrelic.hooks.datastore_pymongo', 'instrument_pymongo_mongo_client')
2022-10-27 15:37:03,874 (32028/MainThread) newrelic.config DEBUG - register module ('pymongo.collection', 'newrelic.hooks.datastore_pymongo', 'instrument_pymongo_collection')
2022-10-27 15:37:03,874 (32028/MainThread) newrelic.config DEBUG - register module ('redis.connection', 'newrelic.hooks.datastore_redis', 'instrument_redis_connection')
2022-10-27 15:37:03,874 (32028/MainThread) newrelic.config DEBUG - register module ('redis.client', 'newrelic.hooks.datastore_redis', 'instrument_redis_client')
2022-10-27 15:37:03,874 (32028/MainThread) newrelic.config DEBUG - register module ('redis.commands.core', 'newrelic.hooks.datastore_redis', 'instrument_redis_commands_core')
2022-10-27 15:37:03,874 (32028/MainThread) newrelic.config DEBUG - register module ('redis.commands.sentinel', 'newrelic.hooks.datastore_redis', 'instrument_redis_commands_sentinel')
2022-10-27 15:37:03,874 (32028/MainThread) newrelic.config DEBUG - register module ('redis.commands.json.commands', 'newrelic.hooks.datastore_redis', 'instrument_redis_commands_json_commands')
2022-10-27 15:37:03,874 (32028/MainThread) newrelic.config DEBUG - register module ('redis.commands.search.commands', 'newrelic.hooks.datastore_redis', 'instrument_redis_commands_search_commands')
2022-10-27 15:37:03,874 (32028/MainThread) newrelic.config DEBUG - register module ('redis.commands.timeseries.commands', 'newrelic.hooks.datastore_redis', 'instrument_redis_commands_timeseries_commands')
2022-10-27 15:37:03,874 (32028/MainThread) newrelic.config DEBUG - register module ('redis.commands.bf.commands', 'newrelic.hooks.datastore_redis', 'instrument_redis_commands_bf_commands')
2022-10-27 15:37:03,874 (32028/MainThread) newrelic.config DEBUG - register module ('redis.commands.graph.commands', 'newrelic.hooks.datastore_redis', 'instrument_redis_commands_graph_commands')
2022-10-27 15:37:03,874 (32028/MainThread) newrelic.config DEBUG - register module ('motor', 'newrelic.hooks.datastore_motor', 'patch_motor')
2022-10-27 15:37:03,874 (32028/MainThread) newrelic.config DEBUG - register module ('piston.resource', 'newrelic.hooks.component_piston', 'instrument_piston_resource')
2022-10-27 15:37:03,874 (32028/MainThread) newrelic.config DEBUG - register module ('piston.doc', 'newrelic.hooks.component_piston', 'instrument_piston_doc')
2022-10-27 15:37:03,874 (32028/MainThread) newrelic.config DEBUG - register module ('tastypie.resources', 'newrelic.hooks.component_tastypie', 'instrument_tastypie_resources')
2022-10-27 15:37:03,874 (32028/MainThread) newrelic.config DEBUG - register module ('tastypie.api', 'newrelic.hooks.component_tastypie', 'instrument_tastypie_api')
2022-10-27 15:37:03,874 (32028/MainThread) newrelic.config DEBUG - register module ('rest_framework.views', 'newrelic.hooks.component_djangorestframework', 'instrument_rest_framework_views')
2022-10-27 15:37:03,874 (32028/MainThread) newrelic.config DEBUG - register module ('rest_framework.decorators', 'newrelic.hooks.component_djangorestframework', 'instrument_rest_framework_decorators')
2022-10-27 15:37:03,875 (32028/MainThread) newrelic.config DEBUG - register module ('celery.task.base', 'newrelic.hooks.application_celery', 'instrument_celery_app_task')
2022-10-27 15:37:03,875 (32028/MainThread) newrelic.config DEBUG - register module ('celery.app.task', 'newrelic.hooks.application_celery', 'instrument_celery_app_task')
2022-10-27 15:37:03,875 (32028/MainThread) newrelic.config DEBUG - register module ('celery.worker', 'newrelic.hooks.application_celery', 'instrument_celery_worker')
2022-10-27 15:37:03,875 (32028/MainThread) newrelic.config DEBUG - register module ('celery.concurrency.processes', 'newrelic.hooks.application_celery', 'instrument_celery_worker')
2022-10-27 15:37:03,875 (32028/MainThread) newrelic.config DEBUG - register module ('celery.concurrency.prefork', 'newrelic.hooks.application_celery', 'instrument_celery_worker')
2022-10-27 15:37:03,875 (32028/MainThread) newrelic.config DEBUG - register module ('celery.execute.trace', 'newrelic.hooks.application_celery', 'instrument_celery_execute_trace')
2022-10-27 15:37:03,875 (32028/MainThread) newrelic.config DEBUG - register module ('celery.task.trace', 'newrelic.hooks.application_celery', 'instrument_celery_execute_trace')
2022-10-27 15:37:03,875 (32028/MainThread) newrelic.config DEBUG - register module ('celery.app.trace', 'newrelic.hooks.application_celery', 'instrument_celery_execute_trace')
2022-10-27 15:37:03,875 (32028/MainThread) newrelic.config DEBUG - register module ('billiard.pool', 'newrelic.hooks.application_celery', 'instrument_billiard_pool')
2022-10-27 15:37:03,875 (32028/MainThread) newrelic.config DEBUG - register module ('flup.server.cgi', 'newrelic.hooks.adapter_flup', 'instrument_flup_server_cgi')
2022-10-27 15:37:03,875 (32028/MainThread) newrelic.config DEBUG - register module ('flup.server.ajp_base', 'newrelic.hooks.adapter_flup', 'instrument_flup_server_ajp_base')
2022-10-27 15:37:03,875 (32028/MainThread) newrelic.config DEBUG - register module ('flup.server.fcgi_base', 'newrelic.hooks.adapter_flup', 'instrument_flup_server_fcgi_base')
2022-10-27 15:37:03,875 (32028/MainThread) newrelic.config DEBUG - register module ('flup.server.scgi_base', 'newrelic.hooks.adapter_flup', 'instrument_flup_server_scgi_base')
2022-10-27 15:37:03,875 (32028/MainThread) newrelic.config DEBUG - register module ('pywapi', 'newrelic.hooks.external_pywapi', 'instrument_pywapi')
2022-10-27 15:37:03,875 (32028/MainThread) newrelic.config DEBUG - register module ('meinheld.server', 'newrelic.hooks.adapter_meinheld', 'instrument_meinheld_server')
2022-10-27 15:37:03,876 (32028/MainThread) newrelic.config DEBUG - register module ('waitress.server', 'newrelic.hooks.adapter_waitress', 'instrument_waitress_server')
2022-10-27 15:37:03,876 (32028/MainThread) newrelic.config DEBUG - register module ('gevent.wsgi', 'newrelic.hooks.adapter_gevent', 'instrument_gevent_wsgi')
2022-10-27 15:37:03,876 (32028/MainThread) newrelic.config DEBUG - register module ('gevent.pywsgi', 'newrelic.hooks.adapter_gevent', 'instrument_gevent_pywsgi')
2022-10-27 15:37:03,876 (32028/MainThread) newrelic.config DEBUG - register module ('wsgiref.simple_server', 'newrelic.hooks.adapter_wsgiref', 'instrument_wsgiref_simple_server')
2022-10-27 15:37:03,876 (32028/MainThread) newrelic.config DEBUG - register module ('cherrypy.wsgiserver', 'newrelic.hooks.adapter_cherrypy', 'instrument_cherrypy_wsgiserver')
2022-10-27 15:37:03,876 (32028/MainThread) newrelic.config DEBUG - register module ('cheroot.wsgi', 'newrelic.hooks.adapter_cheroot', 'instrument_cheroot_wsgiserver')
2022-10-27 15:37:03,876 (32028/MainThread) newrelic.config DEBUG - register module ('pyramid.router', 'newrelic.hooks.framework_pyramid', 'instrument_pyramid_router')
2022-10-27 15:37:03,876 (32028/MainThread) newrelic.config DEBUG - register module ('pyramid.config', 'newrelic.hooks.framework_pyramid', 'instrument_pyramid_config_views')
2022-10-27 15:37:03,876 (32028/MainThread) newrelic.config DEBUG - register module ('pyramid.config.views', 'newrelic.hooks.framework_pyramid', 'instrument_pyramid_config_views')
2022-10-27 15:37:03,876 (32028/MainThread) newrelic.config DEBUG - register module ('pyramid.config.tweens', 'newrelic.hooks.framework_pyramid', 'instrument_pyramid_config_tweens')
2022-10-27 15:37:03,876 (32028/MainThread) newrelic.config DEBUG - register module ('cornice.service', 'newrelic.hooks.component_cornice', 'instrument_cornice_service')
2022-10-27 15:37:03,876 (32028/MainThread) newrelic.config DEBUG - register module ('gevent.monkey', 'newrelic.hooks.coroutines_gevent', 'instrument_gevent_monkey')
2022-10-27 15:37:03,876 (32028/MainThread) newrelic.config DEBUG - register module ('weberror.errormiddleware', 'newrelic.hooks.middleware_weberror', 'instrument_weberror_errormiddleware')
2022-10-27 15:37:03,876 (32028/MainThread) newrelic.config DEBUG - register module ('weberror.reporter', 'newrelic.hooks.middleware_weberror', 'instrument_weberror_reporter')
2022-10-27 15:37:03,876 (32028/MainThread) newrelic.config DEBUG - register module ('thrift.transport.TSocket', 'newrelic.hooks.external_thrift', 'instrument')
2022-10-27 15:37:03,876 (32028/MainThread) newrelic.config DEBUG - register module ('gearman.client', 'newrelic.hooks.application_gearman', 'instrument_gearman_client')
2022-10-27 15:37:03,876 (32028/MainThread) newrelic.config DEBUG - register module ('gearman.connection_manager', 'newrelic.hooks.application_gearman', 'instrument_gearman_connection_manager')
2022-10-27 15:37:03,876 (32028/MainThread) newrelic.config DEBUG - register module ('gearman.worker', 'newrelic.hooks.application_gearman', 'instrument_gearman_worker')
2022-10-27 15:37:03,876 (32028/MainThread) newrelic.config DEBUG - register module ('botocore.endpoint', 'newrelic.hooks.external_botocore', 'instrument_botocore_endpoint')
2022-10-27 15:37:03,877 (32028/MainThread) newrelic.config DEBUG - register module ('botocore.client', 'newrelic.hooks.external_botocore', 'instrument_botocore_client')
2022-10-27 15:37:03,877 (32028/MainThread) newrelic.config DEBUG - register module ('tornado.httpserver', 'newrelic.hooks.framework_tornado', 'instrument_tornado_httpserver')
2022-10-27 15:37:03,877 (32028/MainThread) newrelic.config DEBUG - register module ('tornado.httputil', 'newrelic.hooks.framework_tornado', 'instrument_tornado_httputil')
2022-10-27 15:37:03,877 (32028/MainThread) newrelic.config DEBUG - register module ('tornado.httpclient', 'newrelic.hooks.framework_tornado', 'instrument_tornado_httpclient')
2022-10-27 15:37:03,877 (32028/MainThread) newrelic.config DEBUG - register module ('tornado.routing', 'newrelic.hooks.framework_tornado', 'instrument_tornado_routing')
2022-10-27 15:37:03,877 (32028/MainThread) newrelic.config DEBUG - register module ('tornado.web', 'newrelic.hooks.framework_tornado', 'instrument_tornado_web')
2022-10-27 15:37:03,885 (32028/MainThread) newrelic.config DEBUG - instrument module (<module 'gunicorn.app.base' from '/Users/anze/coding/newrelic/.venv/lib/python3.10/site-packages/gunicorn/app/base.py'>, 'newrelic.hooks.adapter_gunicorn', 'instrument_gunicorn_app_base')
2022-10-27 15:37:03,896 (32028/MainThread) newrelic.core.agent INFO - New Relic Python Agent (8.4.0)
2022-10-27 15:37:03,896 (32028/MainThread) newrelic.core.agent DEBUG - Monitored application started using the newrelic-admin command with command line of ['/Users/anze/coding/newrelic/.venv/bin/newrelic-admin', 'run-program', 'gunicorn', '-w', '1', 'myapp:app'].
2022-10-27 15:37:03,896 (32028/MainThread) newrelic.core.agent DEBUG - Creating instance of Python agent in process 32028.
2022-10-27 15:37:03,898 (32028/MainThread) newrelic.core.agent DEBUG - Agent was initialized from: '  File "/Users/anze/coding/newrelic/.venv/bin/gunicorn", line 8, in <module>\n    sys.exit(run())\n  File "/Users/anze/coding/newrelic/.venv/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 67, in run\n    WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()\n  File "/Users/anze/coding/newrelic/.venv/lib/python3.10/site-packages/gunicorn/app/base.py", line 231, in run\n    super().run()\n  File "/Users/anze/coding/newrelic/.venv/lib/python3.10/site-packages/gunicorn/app/base.py", line 72, in run\n    Arbiter(self).run()\n  File "/Users/anze/coding/newrelic/.venv/lib/python3.10/site-packages/gunicorn/arbiter.py", line 198, in run\n    self.start()\n  File "/Users/anze/coding/newrelic/.venv/lib/python3.10/site-packages/gunicorn/arbiter.py", line 124, in start\n    self.log.info("Starting gunicorn %s", __version__)\n  File "/Users/anze/coding/newrelic/.venv/lib/python3.10/site-packages/gunicorn/glogging.py", line 264, in info\n    self.error_log.info(msg, *args, **kwargs)\n  File "/Users/anze/.pyenv/versions/3.10.6/lib/python3.10/logging/__init__.py", line 1477, in info\n    self._log(INFO, msg, args, **kwargs)\n  File "/Users/anze/.pyenv/versions/3.10.6/lib/python3.10/logging/__init__.py", line 1624, in _log\n    self.handle(record)\n  File "/Users/anze/.pyenv/versions/3.10.6/lib/python3.10/logging/__init__.py", line 1634, in handle\n    self.callHandlers(record)\n  File "/Users/anze/coding/newrelic/.venv/lib/python3.10/site-packages/newrelic/hooks/logger_logging.py", line 71, in wrap_callHandlers\n    application = application_instance(activate=False)\n  File "/Users/anze/coding/newrelic/.venv/lib/python3.10/site-packages/newrelic/api/application.py", line 170, in application_instance\n    return Application._instance(name, activate=activate)\n  File "/Users/anze/coding/newrelic/.venv/lib/python3.10/site-packages/newrelic/api/application.py", line 41, in _instance\n    agent = newrelic.core.agent.agent_instance()\n  File "/Users/anze/coding/newrelic/.venv/lib/python3.10/site-packages/newrelic/core/agent.py", line 740, in agent_instance\n    return Agent.agent_singleton()\n'
2022-10-27 15:37:03,898 (32028/MainThread) newrelic.core.agent DEBUG - Initializing Python agent.
2022-10-27 15:37:03,898 (32028/MainThread) newrelic.core.agent DEBUG - Registering builtin data sources.
2022-10-27 15:37:03,898 (32028/MainThread) newrelic.core.agent DEBUG - Register data source with agent (<function _CPUUsageDataSource at 0x102a309d0>, None, None, None, {}).
2022-10-27 15:37:03,898 (32028/MainThread) newrelic.core.agent DEBUG - Register data source with agent (<function memory_usage_data_source at 0x102a313f0>, None, None, None, {}).
2022-10-27 15:37:03,898 (32028/MainThread) newrelic.core.agent DEBUG - Register data source with agent (<function thread_utilization_data_source at 0x102a30430>, None, None, None, {}).
2022-10-27 15:37:03,898 (32028/MainThread) newrelic.core.agent DEBUG - Register data source with agent (<function _GCDataSource at 0x102a30e50>, None, None, None, {}).
2022-10-27 15:37:03,899 (32028/MainThread) newrelic.api.transaction DEBUG - record_log_event has been called but no transaction or application was running. As a result, the following event has not been recorded. message: 'Starting gunicorn 20.1.0' level: 'INFO' timestamp 1666881423896. To correct this problem, supply an application object as a parameter to this record_log_event call.
[2022-10-27 15:37:03 +0100] [32028] [INFO] Starting gunicorn 20.1.0
2022-10-27 15:37:03,900 (32028/MainThread) newrelic.api.transaction DEBUG - record_log_event has been called but no transaction or application was running. As a result, the following event has not been recorded. message: 'Listening at: http://127.0.0.1:8000 (32028)' level: 'INFO' timestamp 1666881423900. To correct this problem, supply an application object as a parameter to this record_log_event call.
[2022-10-27 15:37:03 +0100] [32028] [INFO] Listening at: http://127.0.0.1:8000 (32028)
2022-10-27 15:37:03,900 (32028/MainThread) newrelic.api.transaction DEBUG - record_log_event has been called but no transaction or application was running. As a result, the following event has not been recorded. message: 'Using worker: sync' level: 'INFO' timestamp 1666881423900. To correct this problem, supply an application object as a parameter to this record_log_event call.
[2022-10-27 15:37:03 +0100] [32028] [INFO] Using worker: sync
2022-10-27 15:37:03,904 (32031/MainThread) newrelic.api.transaction DEBUG - record_log_event has been called but no transaction or application was running. As a result, the following event has not been recorded. message: 'Booting worker with pid: 32031' level: 'INFO' timestamp 1666881423904. To correct this problem, supply an application object as a parameter to this record_log_event call.
[2022-10-27 15:37:03 +0100] [32031] [INFO] Booting worker with pid: 32031
hmstepanek commented 2 years ago

This happens when the worker is killed and is restarted. When this happens the agent is recreated for that new worker process and the first transaction(s) is not captured while things are getting setup. After that, any following transaction will be captured.

anze3db commented 2 years ago

Got it. So there is nothing we can do to fix this or disable the warning. Best to just ignore it completely?

hmstepanek commented 2 years ago

Yes. This message is only a concern if you are not seeing data. We don't want to remove this warning as it CAN be indicative of a reason why you wouldn't be seeing data but in the case of gunicorn workers restarting like this it's expected and can be ignored. The issue with trying to not show the warning during gunicorn worker restart is that it is in a non-gunicorn specific part of the code and when the warning occurs, it occurs correctly. Meaning that the warning is indicating correctly that the process id changed and the application needs to be re-registered so while that is happening no data will be sent. To your point however, I understand how this is confusing and concerning to see this warning. This could be better explained in the docs so I'm going to add a ticket to add an explanation into the docs about this.