Skip to content

Commit

Permalink
log trace init
Browse files Browse the repository at this point in the history
  • Loading branch information
cyri113 committed Jun 28, 2024
1 parent 75e784c commit cfbf9f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions worker/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@

@worker_process_init.connect(weak=False)
def init_tracing():
logging.info("Initializing trace...")
load_dotenv()
otel_endpoint = os.getenv("TRACELOOP_BASE_URL")
Traceloop.init(app_name="hivemind-server", api_endpoint=otel_endpoint)
logging.info("Trace initialized...")


@app.task
Expand Down

0 comments on commit cfbf9f7

Please sign in to comment.