Copy config from prod branch to main

This commit is contained in:
Mouse Reeve
2022-02-04 18:34:17 -08:00
parent 0601f68685
commit 7811a9920e
9 changed files with 70 additions and 25 deletions

View File

@ -33,6 +33,11 @@ class BookwyrmConfig(AppConfig):
verbose_name = "BookWyrm"
def ready(self):
if settings.OTEL_EXPORTER_OTLP_ENDPOINT:
from bookwyrm.telemetry import open_telemetry
open_telemetry.instrumentDjango()
if settings.ENABLE_PREVIEW_IMAGES and settings.FONTS:
# Download any fonts that we don't have yet
logger.debug("Downloading fonts..")