Skip to content

Commit

Permalink
init tracing?
Browse files Browse the repository at this point in the history
  • Loading branch information
cyri113 committed Jun 28, 2024
1 parent e23dcad commit 6c2d75b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions worker/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@


def init_tracing():
logging.info("Initializing trace...")
logging.info("Initializing traceloop...")
otel_endpoint = os.getenv("TRACELOOP_BASE_URL")
Traceloop.init(app_name="hivemind-server", api_endpoint=otel_endpoint)
logging.info("Trace initialized...")
logging.info("Traceloop initialized.")


app = Celery(
Expand All @@ -29,5 +29,5 @@ def init_tracing():
)

if __name__ == "__main__":
init_tracing()
app.start()
init_tracing()

0 comments on commit 6c2d75b

Please sign in to comment.