From 397164f050247e8699eb53ab6b5e9a406bf92e48 Mon Sep 17 00:00:00 2001 From: Cyrille Derche Date: Fri, 28 Jun 2024 13:23:42 +0200 Subject: [PATCH] reformat --- worker/celery.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/worker/celery.py b/worker/celery.py index 98a7806..1292f15 100644 --- a/worker/celery.py +++ b/worker/celery.py @@ -14,12 +14,14 @@ host = rabbit_creds["host"] port = rabbit_creds["port"] + def init_tracing(): logging.info("Initializing trace...") otel_endpoint = os.getenv("TRACELOOP_BASE_URL") Traceloop.init(app_name="hivemind-server", api_endpoint=otel_endpoint) logging.info("Trace initialized...") + app = Celery( "tasks", broker=f"pyamqp://{user}:{password}@{host}:{port}//",