try initializing new relic after we monkeypatch

This commit is contained in:
Kenneth Kehl
2025-07-29 07:55:48 -07:00
parent e7cee89624
commit 1ff90843d7
4 changed files with 7 additions and 3 deletions

View File

@@ -2,4 +2,8 @@ from gevent import monkey
monkey.patch_all()
import newrelic.agent # noqa
newrelic.agent.initialize("./newrelic.ini")
from application import application # noqa

2
poetry.lock generated
View File

@@ -5645,4 +5645,4 @@ cffi = ["cffi (>=1.11)"]
[metadata]
lock-version = "2.1"
python-versions = "^3.13.2"
content-hash = "4bdc474ed8c3825f1ae4f0e3ccb2de527f3a83d327843cca07fedc50493970bf"
content-hash = "b40b20a277c88a4d73608c5c81c5c2dfb5bac46f00c9788b9705d13fecf520a4"

View File

@@ -38,7 +38,7 @@ jsonschema = {version = "==4.25.0", extras = ["format"]}
lxml = "==6.0.0"
marshmallow = "^4.0.0"
marshmallow-sqlalchemy = "^1.4.2"
newrelic = "*"
newrelic = "^10.15.0"
packaging = "==25.0"
poetry-dotenv-plugin = "==0.2.0"
psycopg2-binary = "==2.9.10"

View File

@@ -4,4 +4,4 @@ if [[ $CF_INSTANCE_INDEX -eq 0 ]]; then
flask db upgrade
fi
exec newrelic-admin run-program gunicorn -c ${HOME}/gunicorn_config.py gunicorn_entry:application
exec gunicorn -c ${HOME}/gunicorn_config.py gunicorn_entry:application