Skip to content
Merged
Changes from all commits
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
24 changes: 12 additions & 12 deletions src/backend/app_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,18 @@
from utils_kernel import get_agents, initialize_runtime_and_context, rai_success

# # Check if the Application Insights Instrumentation Key is set in the environment variables
connection_string = os.getenv("APPLICATIONINSIGHTS_CONNECTION_STRING")
if connection_string:
# Configure Application Insights if the Instrumentation Key is found
configure_azure_monitor(connection_string=connection_string)
logging.info(
"Application Insights configured with the provided Instrumentation Key"
)
else:
# Log a warning if the Instrumentation Key is not found
logging.warning(
"No Application Insights Instrumentation Key found. Skipping configuration"
)
# connection_string = os.getenv("APPLICATIONINSIGHTS_CONNECTION_STRING")
# if connection_string:
# # Configure Application Insights if the Instrumentation Key is found
# configure_azure_monitor(connection_string=connection_string)
# logging.info(
# "Application Insights configured with the provided Instrumentation Key"
# )
# else:
# # Log a warning if the Instrumentation Key is not found
# logging.warning(
# "No Application Insights Instrumentation Key found. Skipping configuration"
# )

# Configure logging
logging.basicConfig(level=logging.INFO)
Expand Down
Loading