1
0
Fork 0

Add setting for OpenTelemetry console exporter

This is primarily useful for debugging changes to the OpenTelemetry
setup.
This commit is contained in:
Wesley Aptekar-Cassels 2023-03-16 13:58:09 -04:00
parent 7bb4e21a36
commit 63ab3abe67
4 changed files with 14 additions and 4 deletions

View file

@ -7,7 +7,7 @@ class CelerywyrmConfig(AppConfig):
verbose_name = "BookWyrm Celery"
def ready(self):
if settings.OTEL_EXPORTER_OTLP_ENDPOINT:
if settings.OTEL_EXPORTER_OTLP_ENDPOINT or settings.OTEL_EXPORTER_CONSOLE:
from bookwyrm.telemetry import open_telemetry
open_telemetry.instrumentCelery()