Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Celery tracing has stopped reporting to new relic console after version 9.9 #1219

Open
fernandoaguilar opened this issue Sep 24, 2024 · 2 comments

Comments

@fernandoaguilar
Copy link

Description
After upgrading to agent version 9.13.0 celery monitoring has stopped reporting and showing up in new relic console. I noticed it stopped working after version 9.9.0.

Expected Behavior
celery metrics should report to new relic console.

Troubleshooting or NR Diag results
tried using nrdiag but its not detecting the virtual environement, therefore it fails to detect newrelic is even installed.

Steps to Reproduce
CELERY_BIN="NEW_RELIC_CONFIG_FILE=/path/to/newrelic.ini /path/to/newrelic-admin run-program /path/to/celery"
service file

[Unit]
Description=Celery Service
After=network.target

[Service]
Type=forking
User=ubuntu
Group=ubuntu
EnvironmentFile=/etc/default/celeryd
WorkingDirectory=/srv/plugshare
ExecStart=/bin/sh -c '${CELERY_BIN} -A ${CELERY_APP} multi start ${CELERYD_NODES} \
  --pidfile=${CELERYD_PID_FILE} \
  --logfile=${CELERYD_LOG_FILE} --loglevel=${CELERYD_LOG_LEVEL} ${CELERYD_OPTS}'
ExecStop=/bin/sh -c '${CELERY_BIN} multi stopwait ${CELERYD_NODES} \
  --pidfile=${CELERYD_PID_FILE}'
ExecReload=/bin/sh -c '${CELERY_BIN} -A ${CELERY_APP} multi restart ${CELERYD_NODES} \
  --pidfile=${CELERYD_PID_FILE} \
  --logfile=${CELERYD_LOG_FILE} --loglevel=${CELERYD_LOG_LEVEL} ${CELERYD_OPTS}'

[Install]
WantedBy=multi-user.target

Your Environment
new relic agent: 9.13.0
celery version 5.4.0
python 3.11

@workato-integration
Copy link

@workato-integration workato-integration bot changed the title Celery tracing has stopped reporting to new relic console after version 9.9 Celery tracing has stopped reporting to new relic console after version 9.9 Sep 24, 2024
@lrafeei
Copy link
Contributor

lrafeei commented Nov 20, 2024

Hello--sorry about the delay on this one. Are you using a custom base task for any of your tasks, perhaps? We had a similar issue with this that involved New Relic missing some instrumentation for custom base tasks in subsequent versions. If not, would it be possible to get a basic repro of your app?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants