Copy config from prod branch to main
This commit is contained in:
parent
0601f68685
commit
7811a9920e
9 changed files with 70 additions and 25 deletions
13
celerywyrm/apps.py
Normal file
13
celerywyrm/apps.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
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()
|
Loading…
Add table
Add a link
Reference in a new issue