Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
cyri113 committed Jun 28, 2024
1 parent d2fb665 commit 397164f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions worker/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}//",
Expand Down

0 comments on commit 397164f

Please sign in to comment.