Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
ops: Enable native OpenTelemetry Functions Apps integration
Clémence Lesnéee5a2df1ed47
diff --git a/helpers/logging.py b/helpers/logging.pyindex 497f249..b8dc0b6 100644--- a/helpers/logging.py+++ b/helpers/logging.py@@ -4,7 +4,6 @@ from logging import getLogger, basicConfigfrom opentelemetry import tracefrom opentelemetry.instrumentation.aiohttp_client import AioHttpClientInstrumentorfrom opentelemetry.instrumentation.httpx import HTTPXClientInstrumentor-from os import getenvAPP_NAME = "call-center-ai"@@ -15,9 +14,7 @@ logger = getLogger(APP_NAME)logger.setLevel(CONFIG.monitoring.logging.app_level.value)# OpenTelemetry-configure_azure_monitor(- connection_string=getenv("APPLICATIONINSIGHTS_CONNECTION_STRING"),-) # Configure Azure Application Insights exporter+configure_azure_monitor() # Configure Azure Application Insights exporterAioHttpClientInstrumentor().instrument() # Instrument aiohttpHTTPXClientInstrumentor().instrument() # Instrument httpxtracer = trace.get_tracer(diff --git a/host.json b/host.jsonindex 6734a88..91ff939 100644--- a/host.json+++ b/host.json@@ -9,8 +9,16 @@"logLevel": {"default": "Warning","Function": "Information"+ },+ "applicationInsights": {+ "samplingSettings": {+ "isEnabled": true,+ "excludedTypes": "Request"+ },+ "enableLiveMetricsFilters": true}},+ "telemetryMode": "openTelemetry","extensions": {"http": {"routePrefix": ""