Skip to content

Commit

Permalink
Enable app insights for the web admin application (#594)
Browse files Browse the repository at this point in the history
Required by #477
  • Loading branch information
adamdougal authored Apr 5, 2024
1 parent f9781f2 commit b35fb0e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/backend/Admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
import logging
import sys
from dotenv import load_dotenv
from azure.monitor.opentelemetry import configure_azure_monitor


load_dotenv()

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

configure_azure_monitor()

logger = logging.getLogger("azure.core.pipeline.policies.http_logging_policy").setLevel(
logging.WARNING
)
Expand Down

0 comments on commit b35fb0e

Please sign in to comment.