1
0
Fork 0

Merge pull request #2744 from WesleyAC/opentelemetry-console-exporter

Add OpenTelemetry console exporter option
This commit is contained in:
Mouse Reeve 2023-03-20 14:26:24 -07:00 committed by GitHub
commit e9d08e7424
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 19 additions and 9 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()