Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/backend/agents/group_chat_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,12 @@ async def _execute_step(self, session_id: str, step: Step):
)

track_event(
f"Group Chat Manager - Requesting {step.agent.value.title()} to perform the action and added into the cosmos",
f"Group Chat Manager - Requesting {formatted_agent} to perform the action and added into the cosmos",
{
"session_id": session_id,
"user_id": self._user_id,
"plan_id": step.plan_id,
"content": f"Requesting {step.agent.value.title()} to perform action: {step.action}",
"content": f"Requesting {formatted_agent} to perform action: {step.action}",
"source": "GroupChatManager",
"step_id": step.id,
},
Expand Down
3 changes: 3 additions & 0 deletions src/backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from fastapi.middleware.cors import CORSMiddleware
from azure.monitor.opentelemetry import configure_azure_monitor
from azure.monitor.events.extension import track_event
from opentelemetry.instrumentation.fastapi import FastAPIInstrumentor

configure_azure_monitor(
connection_string=os.getenv("APPLICATIONINSIGHTS_INSTRUMENTATION_KEY")
Expand All @@ -45,6 +46,8 @@
# Initialize the FastAPI app
app = FastAPI()

FastAPIInstrumentor.instrument_app(app)

frontend_url = Config.FRONTEND_SITE_NAME

# Add this near the top of your app.py, after initializing the app
Expand Down
Loading