moviewyrm/celerywyrm/apps.py
Joel Bradshaw f5f861ce25 Make it black 🎸
2022-01-01 14:51:01 -08:00

13 lines
340 B
Python

from django.apps import AppConfig
from celerywyrm import settings
class CelerywyrmConfig(AppConfig):
name = "celerywyrm"
verbose_name = "BookWyrm Celery"
def ready(self):
if settings.OTEL_EXPORTER_OTLP_ENDPOINT:
from bookwyrm.telemetry import open_telemetry
open_telemetry.instrumentCelery()