I'm adding your snowplow-python-tracker to my django app right now. Currently I'm running into an issue whenever I import the Emitter class. Looking at your code, you guys seem to do some stuff to create a Celery app in the main body of the Emitter module. The problem in my current case is that this code gets executed before my logic to create the default celery app for my django project. As a result, the default celery app get's set to Snowplow and celery stops working for my app. Seems to me this logic should be set in __init__ of the CeleryEmitter instead. There's plenty of ways for me to work around this for now, but I thought you guys should be aware of this. It took me a while to identify this as the central cause, and may trip up others in similar situations. I'm happy to throw up a fix, if you guys would like that.
I'm adding your snowplow-python-tracker to my django app right now. Currently I'm running into an issue whenever I import the Emitter class. Looking at your code, you guys seem to do some stuff to create a Celery app in the main body of the Emitter module. The problem in my current case is that this code gets executed before my logic to create the default celery app for my django project. As a result, the default celery app get's set to Snowplow and celery stops working for my app. Seems to me this logic should be set in
__init__of theCeleryEmitterinstead. There's plenty of ways for me to work around this for now, but I thought you guys should be aware of this. It took me a while to identify this as the central cause, and may trip up others in similar situations. I'm happy to throw up a fix, if you guys would like that.