Skip to content

Commit 14ab925

Browse files
authored
Enable app insights for the web admin application (Azure-Samples#594)
Required by Azure-Samples#477
1 parent edc2ef2 commit 14ab925

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

code/backend/Admin.py

+4
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@
33
import logging
44
import sys
55
from dotenv import load_dotenv
6+
from azure.monitor.opentelemetry import configure_azure_monitor
7+
68

79
load_dotenv()
810

911
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
1012

13+
configure_azure_monitor()
14+
1115
logger = logging.getLogger("azure.core.pipeline.policies.http_logging_policy").setLevel(
1216
logging.WARNING
1317
)

0 commit comments

Comments
 (0)