Skip to content

Commit a8332e1

Browse files
Enable Azure monitoring by uncommenting the configuration lines in app_kernel.py
1 parent 9cc880f commit a8332e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/app_kernel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from auth.auth_utils import get_authenticated_user_details
1111

1212
# Azure monitoring
13-
# from azure.monitor.opentelemetry import configure_azure_monitor
13+
from azure.monitor.opentelemetry import configure_azure_monitor
1414
from config_kernel import Config
1515
from event_utils import track_event_if_configured
1616

@@ -38,7 +38,7 @@
3838
connection_string = os.getenv("APPLICATIONINSIGHTS_CONNECTION_STRING")
3939
if connection_string:
4040
# Configure Application Insights if the Instrumentation Key is found
41-
# configure_azure_monitor(connection_string=connection_string)
41+
configure_azure_monitor(connection_string=connection_string)
4242
logging.info(
4343
"Application Insights configured with the provided Instrumentation Key"
4444
)

0 commit comments

Comments
 (0)