Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
b929f82
fix: ui changes (#1)
Prashant-Microsoft Dec 24, 2024
78778e5
fix: in progress status color after fetch task details (#5)
Kiran-Siluveru-Microsoft Dec 24, 2024
ce008fe
cancel notification message updated (#7)
Kiran-Siluveru-Microsoft Dec 24, 2024
672c204
Merge branch 'main' into hotfix
Roopan-Microsoft Dec 26, 2024
45e22fc
Update task.js (#9)
Roopan-Microsoft Dec 26, 2024
dfa236a
Stages overflow issue fix (#10)
Kiran-Siluveru-Microsoft Dec 26, 2024
dbfbb21
fix: added space to the agent (#13)
Prashant-Microsoft Dec 27, 2024
af14bdb
Approve reject buttons titles disabling buttons and (#15)
Kiran-Siluveru-Microsoft Dec 27, 2024
dafa139
Fix: UX becomes damaged when chat outputs sample code for a task (#14)
Mohan-Microsoft Dec 31, 2024
f460bcb
Merge branch 'main' into hotfix
Roopan-Microsoft Jan 15, 2025
eded9db
Added custom event (#24)
Prashant-Microsoft Jan 17, 2025
2968a56
fix: task with zero stages cannot show the page, spins forever and ra…
Prashant-Microsoft Jan 17, 2025
e532601
Merge branch 'main' into hotfix
Roopan-Microsoft Jan 17, 2025
b390adc
Updated the workflow for build and push docker
Roopan-Microsoft Jan 17, 2025
21e2812
updated the repo name
Roopan-Microsoft Jan 17, 2025
e3c69a2
Update requirements.txt
Roopan-Microsoft Jan 17, 2025
69f196d
Update requirements.txt
Roopan-Microsoft Jan 17, 2025
e4f519f
Update requirements.txt
Roopan-Microsoft Jan 17, 2025
e902639
feat: Integrated application insights instrumentation key into the bi…
Prashant-Microsoft Jan 17, 2025
30d8f59
Update test.yml (#43)
Harmanpreet-Microsoft Jan 20, 2025
cbf5aa1
Disabling Text Area functionality (#47)
Kiran-Siluveru-Microsoft Jan 24, 2025
a28d9be
fix: Usability and Alignments changes (#48)
Kiran-Siluveru-Microsoft Jan 24, 2025
2de069b
Update docker-build-and-push.yml to debug
Roopan-Microsoft Jan 24, 2025
990ac0b
Update docker-build-and-push.yml
Roopan-Microsoft Jan 24, 2025
85d6cdd
Update docker-build-and-push.yml to take the correct event name
Roopan-Microsoft Jan 24, 2025
bea0205
Update docker-build-and-push.yml
Roopan-Microsoft Jan 24, 2025
a162653
fix: text area background color (#50)
Kiran-Siluveru-Microsoft Jan 24, 2025
362cc5b
feat: customize track events (#54)
Prashant-Microsoft Jan 27, 2025
ca8af37
Merge branch 'main' into hotfix
Roopan-Microsoft Jan 28, 2025
9d13747
fix: added config variable (#59)
Prashant-Microsoft Jan 28, 2025
407e3bc
Merge branch 'main' into hotfix
Roopan-Microsoft Jan 29, 2025
4f8f7ce
Title updated (#60)
Roopan-Microsoft Jan 29, 2025
d6e8cf6
fix: operation id field of custom events showing as zero on the serve…
Prashant-Microsoft Jan 29, 2025
be39487
Merge branch 'main' into hotfix
Roopan-Microsoft Jan 31, 2025
f8640d9
test: Ut 10888 backend (#40)
UtkarshMishra-Microsoft Feb 3, 2025
1841012
feat: added dev container
Prashant-Microsoft Feb 3, 2025
000a18e
Fix UI issue to the bug 13843 (#65)
Prashant-Microsoft Feb 6, 2025
4104ac6
fix: added Dev conatainer in Local Deployment Read Me file for this P…
VishalS-Microsoft Feb 7, 2025
60f4b65
appfixes
UtkarshMishra-Microsoft Feb 7, 2025
ff6d85e
Delete src/backend/tests/agents/test_agentutils.py
UtkarshMishra-Microsoft Feb 7, 2025
56b3ed7
appfixes
UtkarshMishra-Microsoft Feb 9, 2025
8ab6fab
Resolved merge conflict in test_agentutils.py
UtkarshMishra-Microsoft Feb 9, 2025
1d09648
appfixes
UtkarshMishra-Microsoft Feb 9, 2025
f388dc1
appfixes
UtkarshMishra-Microsoft Feb 10, 2025
38d1d11
Merge pull request #67 from microsoft/psl-app-fixed
Roopan-Microsoft Feb 10, 2025
269c27b
File path changed for backend to resolve container issue
Mohan-Microsoft Feb 10, 2025
d361f36
Merge pull request #68 from microsoft/psl-bug13843-backend
Roopan-Microsoft Feb 10, 2025
39a4e90
Merge pull request #63 from microsoft/PSL-US-13131
Roopan-Microsoft Feb 10, 2025
84b64d4
Added code changes to implement functionality to disable the chat onc…
Abdul-Microsoft Feb 14, 2025
35a79ed
Added changes to disable chat after receiving human clarification res…
Abdul-Microsoft Feb 14, 2025
8795fb4
Merge pull request #71 from microsoft/psl-bug-14021
Roopan-Microsoft Feb 17, 2025
d2cbf85
Merge branch 'main' into hotfix
Roopan-Microsoft Feb 20, 2025
8def219
fix: updated variable name
Prashant-Microsoft Feb 25, 2025
3f5728d
Merge pull request #75 from microsoft/PSL-BUG-14644
Roopan-Microsoft Feb 25, 2025
8195278
added code to change the icon to in-progress
Kanchan-Microsoft Mar 13, 2025
9a6b34a
added code for canceling task
Kanchan-Microsoft Mar 13, 2025
f704059
Update task.js
Kanchan-Microsoft Mar 14, 2025
ef17030
Merge pull request #84 from microsoft/psl-bug-15008
Roopan-Microsoft Mar 14, 2025
5b944d1
Merge pull request #83 from microsoft/psl-macae-bug-14972
Roopan-Microsoft Mar 14, 2025
bfd92f8
Merge branch 'main' into hotfix
Roopan-Microsoft Mar 17, 2025
02ebe36
migration of session storage data into local storage
Rohini-Microsoft Mar 18, 2025
6ced00c
Merge pull request #89 from microsoft/PSL-BUG-14977-hotfix
Roopan-Microsoft Mar 18, 2025
53b41e7
fixed Maximum call stack size exceeded error
Rohini-Microsoft Mar 18, 2025
4b233d4
Merge pull request #90 from microsoft/PSL-BUG-14977-hotfix
Roopan-Microsoft Mar 18, 2025
76f1d99
Merge branch 'main' into hotfix
Roopan-Microsoft Mar 18, 2025
9c02ee3
Continue polling by calling fetchLoop again removed
Rohini-Microsoft Mar 20, 2025
71972f8
resolved conflict
Rohini-Microsoft Mar 20, 2025
7355efe
Merge pull request #93 from microsoft/PSL-BUG-15001
Rohini-Microsoft Mar 21, 2025
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
62 changes: 31 additions & 31 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
{
"name": "Multi Agent Custom Automation Engine Solution Accelerator",
"image": "mcr.microsoft.com/devcontainers/python:3.10",
"features": {
"ghcr.io/devcontainers/features/azure-cli:1.0.8": {},
"ghcr.io/azure/azure-dev/azd:latest": {},
"ghcr.io/rchaganti/vsc-devcontainer-features/azurebicep:1.0.5": {}
},
"postCreateCommand": "sudo chmod +x .devcontainer/setupEnv.sh && ./.devcontainer/setupEnv.sh",
"customizations": {
"vscode": {
"extensions": [
"ms-azuretools.azure-dev",
"ms-azuretools.vscode-bicep",
"ms-python.python"
]
},
"codespaces": {
"openFiles": [
"README.md"
]
}
},
"remoteUser": "vscode",
"hostRequirements": {
"memory": "8gb"
}
}
{
"name": "Multi Agent Custom Automation Engine Solution Accelerator",
"image": "mcr.microsoft.com/devcontainers/python:3.10",
"features": {
"ghcr.io/devcontainers/features/azure-cli:1.0.8": {},
"ghcr.io/azure/azure-dev/azd:latest": {},
"ghcr.io/rchaganti/vsc-devcontainer-features/azurebicep:1.0.5": {}
},

"postCreateCommand": "sudo chmod +x .devcontainer/setupEnv.sh && ./.devcontainer/setupEnv.sh",

"customizations": {
"vscode": {
"extensions": [
"ms-azuretools.azure-dev",
"ms-azuretools.vscode-bicep",
"ms-python.python"
]
},
"codespaces": {
"openFiles": [
"README.md"
]
}
},

"remoteUser": "vscode",
"hostRequirements": {
"memory": "8gb"
}
}
5 changes: 4 additions & 1 deletion .devcontainer/setupEnv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ pip install --upgrade pip

(cd ./src/frontend; pip install -r requirements.txt)

(cd ./src/backend; pip install -r requirements.txt)

(cd ./src/backend; pip install -r requirements.txt)


2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
max-line-length = 88
extend-ignore = E501
exclude = .venv, frontend
ignore = E203, W503, G004, G200
ignore = E203, W503, G004, G200, E402
5 changes: 1 addition & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r src/backend/requirements.txt
pip install pytest-cov
pip install pytest-asyncio

- name: Check if test files exist
id: check_tests
Expand All @@ -50,7 +48,6 @@ jobs:
echo "Test files found, running tests."
echo "skip_tests=false" >> $GITHUB_ENV
fi

- name: Run tests with coverage
if: env.skip_tests == 'false'
run: |
Expand All @@ -59,4 +56,4 @@ jobs:
- name: Skip coverage report if no tests
if: env.skip_tests == 'true'
run: |
echo "Skipping coverage report because no tests were found."
echo "Skipping coverage report because no tests were found."
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ To add your newly created backend image:
name: 'FRONTEND_SITE_NAME'
value: 'https://<website Name>.azurewebsites.net'

name: 'APPLICATIONINSIGHTS_INSTRUMENTATION_KEY'
value: <Application Insights Instrumentation Key>
name: 'APPLICATIONINSIGHTS_CONNECTION_STRING'
value: <Application Insights Connection String>

- Click 'Save' and deploy your new revision

Expand Down
4 changes: 2 additions & 2 deletions deploy/macae-continer-oc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.32.4.45862",
"templateHash": "13282901028774763433"
"templateHash": "14272651486454797588"
}
},
"parameters": {
Expand Down Expand Up @@ -368,7 +368,7 @@
"value": "[format('https://{0}.azurewebsites.net', format(variables('uniqueNameFormat'), 'frontend'))]"
},
{
"name": "APPLICATIONINSIGHTS_INSTRUMENTATION_KEY",
"name": "APPLICATIONINSIGHTS_CONNECTION_STRING",
"value": "[reference('appInsights').ConnectionString]"
}
]
Expand Down
2 changes: 1 addition & 1 deletion deploy/macae-continer.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ resource containerApp 'Microsoft.App/containerApps@2024-03-01' = {
value: 'https://${format(uniqueNameFormat, 'frontend')}.azurewebsites.net'
}
{
name: 'APPLICATIONINSIGHTS_INSTRUMENTATION_KEY'
name: 'APPLICATIONINSIGHTS_CONNECTION_STRING'
value: appInsights.properties.ConnectionString
}
]
Expand Down
5 changes: 3 additions & 2 deletions documentation/LocalDeployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# Local setup

> **Note for macOS Developers**: If you are using macOS on Apple Silicon (ARM64) the DevContainer will **not** work. This is due to a limitation with the Azure Functions Core Tools (see [here](https://github.com/Azure/azure-functions-core-tools/issues/3112)). We recommend using the [Non DevContainer Setup](./NON_DEVCONTAINER_SETUP.md) instructions to run the accelerator locally.

The easiest way to run this accelerator is in a VS Code Dev Containers, which will open the project in your local VS Code using the [Dev Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers):

1. Start Docker Desktop (install it if not already installed)
Expand Down Expand Up @@ -96,8 +97,8 @@ The files for the dev container are located in `/.devcontainer/` folder.
**Using a Different Database in Cosmos:**

You can set the solution up to use a different database in Cosmos. For example, you can name it something like autogen-dev. To do this:
1. Change the environment variable **COSMOSDB_DATABASE** to the new database name.
2. You will need to create the database in the Cosmos DB account. You can do this from the Data Explorer pane in the portal, click on the drop down labeled “_+ New Container_” and provide all the necessary details.
1. Change the environment variable **COSMOSDB_DATABASE** to the new database name.
2. You will need to create the database in the Cosmos DB account. You can do this from the Data Explorer pane in the portal, click on the drop down labeled “_+ New Container_” and provide all the necessary details.

6. **Create a `.env` file:**

Expand Down
Empty file added src/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion src/backend/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ AZURE_OPENAI_ENDPOINT=
AZURE_OPENAI_MODEL_NAME=gpt-4o
AZURE_OPENAI_DEPLOYMENT_NAME=gpt-4o
AZURE_OPENAI_API_VERSION=2024-08-01-preview
APPLICATIONINSIGHTS_INSTRUMENTATION_KEY=
APPLICATIONINSIGHTS_CONNECTION_STRING=

BACKEND_API_URL='http://localhost:8000'
FRONTEND_SITE_NAME='http://127.0.0.1:3000'
2 changes: 1 addition & 1 deletion src/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM python:3.11-slim


# Backend app setup
WORKDIR /app/backend
WORKDIR /src/backend
COPY . .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
Expand Down
Empty file added src/backend/__init__.py
Empty file.
Empty file.
4 changes: 2 additions & 2 deletions src/backend/agents/agentutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
)
from pydantic import BaseModel

from context.cosmos_memory import CosmosBufferedChatCompletionContext
from models.messages import Step
from src.backend.context.cosmos_memory import CosmosBufferedChatCompletionContext
from src.backend.models.messages import Step

common_agent_system_message = "If you do not have the information for the arguments of the function you need to call, do not call the function. Instead, respond back to the user requesting further information. You must not hallucinate or invent any of the information used as arguments in the function. For example, if you need to call a function that requires a delivery address, you must not generate 123 Example St. You must skip calling functions and return a clarification message along the lines of: Sorry, I'm missing some information I need to help you with that. Could you please provide the delivery address so I can do that for you?"

Expand Down
6 changes: 3 additions & 3 deletions src/backend/agents/base_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
from autogen_core.components.tool_agent import tool_agent_caller_loop
from autogen_core.components.tools import Tool

from context.cosmos_memory import CosmosBufferedChatCompletionContext
from models.messages import (
from src.backend.context.cosmos_memory import CosmosBufferedChatCompletionContext
from src.backend.models.messages import (
ActionRequest,
ActionResponse,
AgentMessage,
Step,
StepStatus,
)
from event_utils import track_event_if_configured
from src.backend.event_utils import track_event_if_configured


class BaseAgent(RoutedAgent):
Expand Down
4 changes: 2 additions & 2 deletions src/backend/agents/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from autogen_core.components.models import AzureOpenAIChatCompletionClient
from autogen_core.components.tools import FunctionTool, Tool

from agents.base_agent import BaseAgent
from context.cosmos_memory import CosmosBufferedChatCompletionContext
from src.backend.agents.base_agent import BaseAgent
from src.backend.context.cosmos_memory import CosmosBufferedChatCompletionContext


async def dummy_function() -> str:
Expand Down
6 changes: 3 additions & 3 deletions src/backend/agents/group_chat_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from autogen_core.components import RoutedAgent, default_subscription, message_handler
from autogen_core.components.models import AzureOpenAIChatCompletionClient

from context.cosmos_memory import CosmosBufferedChatCompletionContext
from models.messages import (
from src.backend.context.cosmos_memory import CosmosBufferedChatCompletionContext
from src.backend.models.messages import (
ActionRequest,
AgentMessage,
BAgentType,
Expand All @@ -22,7 +22,7 @@
StepStatus,
)

from event_utils import track_event_if_configured
from src.backend.event_utils import track_event_if_configured


@default_subscription
Expand Down
4 changes: 2 additions & 2 deletions src/backend/agents/hr.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from autogen_core.components.tools import FunctionTool, Tool
from typing_extensions import Annotated

from agents.base_agent import BaseAgent
from context.cosmos_memory import CosmosBufferedChatCompletionContext
from src.backend.agents.base_agent import BaseAgent
from src.backend.context.cosmos_memory import CosmosBufferedChatCompletionContext

formatting_instructions = "Instructions: returning the output of this function call verbatim to the user in markdown. Then write AGENT SUMMARY: and then include a summary of what you did."

Expand Down
6 changes: 3 additions & 3 deletions src/backend/agents/human.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
from autogen_core.base import AgentId, MessageContext
from autogen_core.components import RoutedAgent, default_subscription, message_handler

from context.cosmos_memory import CosmosBufferedChatCompletionContext
from models.messages import (
from src.backend.context.cosmos_memory import CosmosBufferedChatCompletionContext
from src.backend.models.messages import (
ApprovalRequest,
HumanFeedback,
StepStatus,
AgentMessage,
Step,
)
from event_utils import track_event_if_configured
from src.backend.event_utils import track_event_if_configured


@default_subscription
Expand Down
4 changes: 2 additions & 2 deletions src/backend/agents/marketing.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from autogen_core.components.models import AzureOpenAIChatCompletionClient
from autogen_core.components.tools import FunctionTool, Tool

from agents.base_agent import BaseAgent
from context.cosmos_memory import CosmosBufferedChatCompletionContext
from src.backend.agents.base_agent import BaseAgent
from src.backend.context.cosmos_memory import CosmosBufferedChatCompletionContext


# Define new Marketing tools (functions)
Expand Down
6 changes: 3 additions & 3 deletions src/backend/agents/planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
)
from pydantic import BaseModel

from context.cosmos_memory import CosmosBufferedChatCompletionContext
from models.messages import (
from src.backend.context.cosmos_memory import CosmosBufferedChatCompletionContext
from src.backend.models.messages import (
AgentMessage,
HumanClarification,
BAgentType,
Expand All @@ -26,7 +26,7 @@
HumanFeedbackStatus,
)

from event_utils import track_event_if_configured
from src.backend.event_utils import track_event_if_configured


@default_subscription
Expand Down
4 changes: 2 additions & 2 deletions src/backend/agents/procurement.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from autogen_core.components.tools import FunctionTool, Tool
from typing_extensions import Annotated

from agents.base_agent import BaseAgent
from context.cosmos_memory import CosmosBufferedChatCompletionContext
from src.backend.agents.base_agent import BaseAgent
from src.backend.context.cosmos_memory import CosmosBufferedChatCompletionContext


# Define new Procurement tools (functions)
Expand Down
4 changes: 2 additions & 2 deletions src/backend/agents/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from autogen_core.components.tools import FunctionTool, Tool
from typing_extensions import Annotated

from agents.base_agent import BaseAgent
from context.cosmos_memory import CosmosBufferedChatCompletionContext
from src.backend.agents.base_agent import BaseAgent
from src.backend.context.cosmos_memory import CosmosBufferedChatCompletionContext

formatting_instructions = "Instructions: returning the output of this function call verbatim to the user in markdown. Then write AGENT SUMMARY: and then include a summary of what you did."

Expand Down
5 changes: 2 additions & 3 deletions src/backend/agents/tech_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from autogen_core.components.tools import FunctionTool, Tool
from typing_extensions import Annotated

from agents.base_agent import BaseAgent
from context.cosmos_memory import CosmosBufferedChatCompletionContext
from src.backend.agents.base_agent import BaseAgent
from src.backend.context.cosmos_memory import CosmosBufferedChatCompletionContext

formatting_instructions = "Instructions: returning the output of this function call verbatim to the user in markdown. Then write AGENT SUMMARY: and then include a summary of what you did."

Expand Down Expand Up @@ -523,7 +523,6 @@ async def get_tech_information(
Document Name: Contoso's IT Policy and Procedure Manual
Domain: IT Policy
Description: A comprehensive guide detailing the IT policies and procedures at Contoso, including acceptable use, security protocols, and incident reporting.

At Contoso, we prioritize the security and efficiency of our IT infrastructure. All employees are required to adhere to the following policies:
- Use strong passwords and change them every 90 days.
- Report any suspicious emails to the IT department immediately.
Expand Down
25 changes: 15 additions & 10 deletions src/backend/app.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
# app.py
#!/usr/bin/env python
import os
import sys

# Add the parent directory (the one that contains the "src" folder) to sys.path.
# This allows absolute imports such as "from src.backend.middleware.health_check" to work
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..")))
import asyncio
import logging
import os
import uuid
from typing import List, Optional
from middleware.health_check import HealthCheckMiddleware
from src.backend.middleware.health_check import HealthCheckMiddleware
from autogen_core.base import AgentId
from fastapi import FastAPI, HTTPException, Query, Request
from auth.auth_utils import get_authenticated_user_details
from config import Config
from context.cosmos_memory import CosmosBufferedChatCompletionContext
from models.messages import (
from src.backend.auth.auth_utils import get_authenticated_user_details
from src.backend.config import Config
from src.backend.context.cosmos_memory import CosmosBufferedChatCompletionContext
from src.backend.models.messages import (
HumanFeedback,
HumanClarification,
InputTask,
Expand All @@ -19,15 +24,15 @@
AgentMessage,
PlanWithSteps,
)
from utils import initialize_runtime_and_context, retrieve_all_agent_tools, rai_success
from event_utils import track_event_if_configured
from src.backend.utils import initialize_runtime_and_context, retrieve_all_agent_tools, rai_success
from src.backend.event_utils import track_event_if_configured
from fastapi.middleware.cors import CORSMiddleware
from azure.monitor.opentelemetry import configure_azure_monitor
from opentelemetry.instrumentation.fastapi import FastAPIInstrumentor


# Check if the Application Insights Instrumentation Key is set in the environment variables
instrumentation_key = os.getenv("APPLICATIONINSIGHTS_INSTRUMENTATION_KEY")
instrumentation_key = os.getenv("APPLICATIONINSIGHTS_CONNECTION_STRING")
if instrumentation_key:
# Configure Application Insights if the Instrumentation Key is found
configure_azure_monitor(connection_string=instrumentation_key)
Expand Down
Loading
Loading