File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 4343from 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
6060logging .basicConfig (level = logging .INFO )
You can’t perform that action at this time.
0 commit comments