mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-25 01:20:35 +00:00
14 lines
340 B
Python
14 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()
|