File tree Expand file tree Collapse file tree 6 files changed +6
-11
lines changed Expand file tree Collapse file tree 6 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -54,4 +54,4 @@ pipeline:
54
54
- AZURE_EXISTING_AIPROJECT_ENDPOINT
55
55
- AZURE_EXISTING_AGENT_ID
56
56
- ENABLE_AZURE_MONITOR_TRACING
57
- - AZURE_TRACING_GENAI_CONTENT_RECORDING_ENABLED
57
+ - AZURE_TRACING_GEN_AI_CONTENT_RECORDING_ENABLED
Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ output AZURE_AI_AGENT_NAME string = agentName
442
442
output AZURE_EXISTING_AGENT_ID string = agentID
443
443
output AZURE_EXISTING_AIPROJECT_ENDPOINT string = projectEndpoint
444
444
output ENABLE_AZURE_MONITOR_TRACING bool = enableAzureMonitorTracing
445
- output AZURE_TRACING_GENAI_CONTENT_RECORDING_ENABLED bool = azureTracingGenAIContentRecordingEnabled
445
+ output AZURE_TRACING_GEN_AI_CONTENT_RECORDING_ENABLED bool = azureTracingGenAIContentRecordingEnabled
446
446
447
447
// Outputs required by azd for ACA
448
448
output AZURE_CONTAINER_ENVIRONMENT_NAME string = containerApps .outputs .environmentName
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ echo "AZURE_AI_AGENT_NAME=$(azd env get-value AZURE_AI_AGENT_NAME)" >> $ENV_FILE
19
19
echo " AZURE_TENANT_ID=$( azd env get-value AZURE_TENANT_ID) " >> $ENV_FILE_PATH
20
20
echo " AZURE_EXISTING_AIPROJECT_ENDPOINT=$( azd env get-value AZURE_EXISTING_AIPROJECT_ENDPOINT) " >> $ENV_FILE_PATH
21
21
echo " ENABLE_AZURE_MONITOR_TRACING=$( azd env get-value ENABLE_AZURE_MONITOR_TRACING) " >> $ENV_FILE_PATH
22
- echo " AZURE_TRACING_GENAI_CONTENT_RECORDING_ENABLED =$( azd env get-value AZURE_TRACING_GENAI_CONTENT_RECORDING_ENABLED ) " >> $ENV_FILE_PATH
22
+ echo " AZURE_TRACING_GEN_AI_CONTENT_RECORDING_ENABLED =$( azd env get-value AZURE_TRACING_GEN_AI_CONTENT_RECORDING_ENABLED ) " >> $ENV_FILE_PATH
23
23
24
24
echo " Web app URL:"
25
25
echo -e " \033[0;36m $( azd env get-value SERVICE_API_URI) "
Original file line number Diff line number Diff line change @@ -47,12 +47,7 @@ async def lifespan(app: fastapi.FastAPI):
47
47
from azure .monitor .opentelemetry import configure_azure_monitor
48
48
configure_azure_monitor (connection_string = application_insights_connection_string )
49
49
app .state .application_insights_connection_string = application_insights_connection_string
50
-
51
- from azure .ai .agents .telemetry import AIAgentsInstrumentor
52
- agents_instrumentor = AIAgentsInstrumentor ()
53
- if not agents_instrumentor .is_instrumented ():
54
- agents_instrumentor .instrument ()
55
- logger .info ("Configured Application Insights for tracing." )
50
+ logger .info ("Configured Application Insights for tracing." )
56
51
57
52
if agent_id :
58
53
try :
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ dependencies = [
11
11
" aiohttp==3.11.1" ,
12
12
" azure-ai-projects" ,
13
13
" azure-core-tracing-opentelemetry" ,
14
- " azure-monitor-opentelemetry" ,
14
+ " azure-monitor-opentelemetry>=1.6.9 " ,
15
15
" azure-search-documents"
16
16
]
17
17
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ azure_ai_projects==1.0.0b11
9
9
10
10
azure-core == 1.31.0 # other versions might not compatible
11
11
azure-core-tracing-opentelemetry
12
- azure-monitor-opentelemetry
12
+ azure-monitor-opentelemetry >= 1.6.9
13
13
azure-search-documents
14
14
opentelemetry-sdk
15
15
You can’t perform that action at this time.
0 commit comments