I would like to run the APM integration with a standalone Celery setup, is it currently possible to do that?
mashhoodr (Mashhood Rastgar) #1
beniwohli (Benjamin Wohlwend @ APM) #2
sorry for the long wait, completely missed this message. It should be relatively straight forward to use Elastic APM with a standalone celery setup. Something like this should work
from elasticapm import Client, instrument from elasticapm.contrib.celery import register_exception_tracking, register_instrumentation instrument() apm_client = Client(server_url="http://localhost:8200") # adapt settings as needed register_exception_tracking(apm_client) register_instrumentation(apm_client)