Skip to content

Commit

Permalink
fix: Going back to previous configs!
Browse files Browse the repository at this point in the history
- We had to point to otel_endpoint.
  • Loading branch information
amindadgar committed Jan 22, 2024
1 parent 3f6363c commit 28d09c0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion celery_app/tasks.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import json
import logging
import os
from typing import Any


from celery_app.server import app
from celery_app.utils.fire_event import job_send
from dotenv import load_dotenv
from subquery import query_multiple_source
from tc_messageBroker.rabbit_mq.event import Event
from tc_messageBroker.rabbit_mq.payload.discord_bot.base_types.interaction_callback_data import (
Expand Down Expand Up @@ -41,7 +44,9 @@ def ask_question_auto_search(
- `date`
- `content`: which is the `ChatInputCommandInteraction` as a dictionary
"""
Traceloop.init(app_name="hivemind-server")
load_dotenv()
otel_endpoint = os.getenv("TRACELOOP_BASE_URL")
Traceloop.init(app_name="hivemind-server", api_endpoint=otel_endpoint)

prefix = f"COMMUNITY_ID: {community_id} | "
logging.info(f"{prefix}Processing question!")
Expand Down

0 comments on commit 28d09c0

Please sign in to comment.