Skip to content

Commit 6df3250

Browse files
authored
Merge pull request #174 from Fr4nc3/main
fix: remove configure_azure_monitor
2 parents 11febef + 07cbe52 commit 6df3250

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/backend/app_kernel.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@
4343
from utils_kernel import get_agents, initialize_runtime_and_context, rai_success
4444

4545
# # Check if the Application Insights Instrumentation Key is set in the environment variables
46-
connection_string = os.getenv("APPLICATIONINSIGHTS_CONNECTION_STRING")
47-
if connection_string:
48-
# Configure Application Insights if the Instrumentation Key is found
49-
configure_azure_monitor(connection_string=connection_string)
50-
logging.info(
51-
"Application Insights configured with the provided Instrumentation Key"
52-
)
53-
else:
54-
# Log a warning if the Instrumentation Key is not found
55-
logging.warning(
56-
"No Application Insights Instrumentation Key found. Skipping configuration"
57-
)
46+
# connection_string = os.getenv("APPLICATIONINSIGHTS_CONNECTION_STRING")
47+
# if connection_string:
48+
# # Configure Application Insights if the Instrumentation Key is found
49+
# configure_azure_monitor(connection_string=connection_string)
50+
# logging.info(
51+
# "Application Insights configured with the provided Instrumentation Key"
52+
# )
53+
# else:
54+
# # Log a warning if the Instrumentation Key is not found
55+
# logging.warning(
56+
# "No Application Insights Instrumentation Key found. Skipping configuration"
57+
# )
5858

5959
# Configure logging
6060
logging.basicConfig(level=logging.INFO)

0 commit comments

Comments
 (0)