QuestionQ78

VerifiedImplement generative AI and agentic solutions

You have a web app named App1 that integrates with a Microsoft Foundry project named Project1 to process user prompts. App1 performs the following actions:

  • Sends prompts directly to a model by using the Azure OpenAI Responses API
  • Invokes the Azure AI Content Safety tool by using a Foundry connection within the same request

You need to configure end-to-end visibility into each step of the request workflow.

What should you do?

Explanation

Microsoft Foundry provides built-in application/agent tracing based on OpenTelemetry that captures every step of a request as correlated spans — including both the model invocation via the Responses API and any tool calls made through Foundry connections, such as Azure AI Content Safety. When application tracing is enabled in the project (typically by connecting an Application Insights resource), Foundry automatically instruments and correlates these steps into a single end-to-end trace that can be viewed in the Foundry portal's Traces view, giving visibility into inputs, outputs, latency, and errors at each stage of the workflow. Enabling logging only within the Content Safety client SDK would isolate that single call and not correlate it with the model request, Foundry Local applies to local model execution rather than this cloud-hosted workflow, and simply routing requests through the Azure OpenAI endpoint does not by itself produce any tracing or visibility into the workflow steps.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!