Skip to content

Commit

Permalink
Telemetry enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
TechPrototyper committed Apr 9, 2024
1 parent 041c792 commit a23d572
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions API/function_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"""

import azure.functions as func
from azure.monitor.opentelemetry import configure_azure_monitor
from opentelemetry import trace
import logging
from datetime import datetime
from azure_openai import InteractWithOpenAI
Expand All @@ -21,6 +23,7 @@

# Konfiguration des Loggings
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
configure_azure_monitor()

# Erstellen der Funktion App

Expand Down
1 change: 1 addition & 0 deletions API/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ azure-data-tables
azure-eventgrid
cloudevents
aiohttp
azure-monitor-opentelemetry

0 comments on commit a23d572

Please sign in to comment.