Skip to content

Commit b9053ae

Browse files
Merge pull request #347 from microsoft/psl-app-insight-change
fix: Psl app insight change
2 parents 7aaa791 + 21d2e0d commit b9053ae

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/backend/api/api_routes.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
from api.status_updates import app_connection_manager, close_connection
1515

1616
# Third-party
17-
from azure.monitor.opentelemetry import configure_azure_monitor
17+
# Azure Monitor OpenTelemetry integration is currently causing issues with OpenAI calls in process_batch_async, needs further investigation, commenting out for now
18+
# from azure.monitor.opentelemetry import configure_azure_monitor
1819

1920
from common.logger.app_logger import AppLogger
2021
from common.services.batch_service import BatchService
@@ -43,7 +44,8 @@
4344
instrumentation_key = os.getenv("APPLICATIONINSIGHTS_CONNECTION_STRING")
4445
if instrumentation_key:
4546
# Configure Application Insights if the Instrumentation Key is found
46-
configure_azure_monitor(connection_string=instrumentation_key)
47+
# commenting below line as configure_azure_monitor is causing issues with OpenAI calls in process_batch_async, needs further investigation
48+
# configure_azure_monitor(connection_string=instrumentation_key)
4749
logging.info(
4850
"Application Insights configured with the provided Instrumentation Key"
4951
)

0 commit comments

Comments
 (0)