Add setting for OpenTelemetry console exporter
This is primarily useful for debugging changes to the OpenTelemetry setup.
This commit is contained in:
parent
7bb4e21a36
commit
63ab3abe67
4 changed files with 14 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue