Configure Observability

Use observability to debug prompts, inspect tool calls, profile latency, trace multi-step flow output, and review agent-to-agent calls. Traces also help you attribute token usage and cost to a complete or partial agent run.

Observability lets administrators send Agent Factory execution traces to a tracing provider. A trace records one end-to-end run. A span records a timed operation inside the run, such as a flow step, an LLM call, or a tool execution.

Configure a tracing provider to export traces and spans from Agent Factory flows, agents, LLM calls, and tool executions for debugging and performance analysis.

Note: Agent Factory currently supports Arize Phoenix, Langfuse, and Comet Opik as tracing providers.

Prerequisites

Before you configure observability in Agent Factory, complete these prerequisites.

Configure a Tracing Tool

After the tracing provider’s server is running, add the tracing tool configuration in Agent Factory.

Note: At any point in time, you can have only one tracing tool configuration. The Add tracing tool button is disabled when a tracing configuration already exists. To add a different provider, delete the existing configuration, and then add the new provider configuration.

  1. Sign in to Agent Factory as an administrator.

  2. In the left navigation menu, select Application settings.

  3. Select the Observability tab.

  4. Click Add tracing tool.

  5. In Configuration name, enter a name that identifies this configuration.

    This name identifies the saved tracing configuration in Agent Factory. Use a short name that helps administrators recognize the target environment, such as local container setup or production phoenix.

  6. For Tracing provider, select Arize Phoenix, Langfuse, or Comet Opik.

    This field specifies the tracing backend.

  7. In Project name, enter the project name where Agent Factory traces are stored.

    The project name groups traces in the tracing provider. Use a project name that helps operators find traces for the deployment, environment, or team. For example, use Agent Factory Demo Tracing for a demonstration environment.

  8. In Endpoint URL, enter the provider’s HTTP traces endpoint. This can be a local deployment or a cloud server where you have set up the provider.

    The endpoint URL specifies where Agent Factory exports traces. Include the /v1/traces path.

    http://<phoenix-host>:6006/v1/traces
    http://<langfuse-host>:3000/api/public/otel/v1/traces
    http://<comet-opik-host>:5173/opik/api/v1/private/otel/v1/traces

    Note: Do not use localhost in the URL unless the tracing provider and Agent Factory resolve localhost to the same runtime environment. Use a host name or IP address that Agent Factory can reach. If the host is outside the network, make sure to enable the Allow User Supplied Proxy and disable the Block Private Outbound Urls in Proxy Settings. See Configure Proxy.

  9. If the tracing provider requires authentication, enable authentication. For Arize Phoenix and Comet Opik, enter the API key. For Langfuse, enter the Secret Key and Public Key. If the tracing provider doesn’t require authentication, leave authentication disabled.

    Authentication controls whether Agent Factory sends an API key when it exports traces. The API key provides the token used to authenticate to the tracing provider. To configure an API key, in Phoenix, select Settings in the left sidebar, then select System Keys. In the Create an API Key dialog, click Create Key. When the confirmation dialog appears, copy the new API key and paste it in the API key field.

  10. If you want Agent Factory to redact sensitive trace payloads, enable Mask sensitive information.

    This field redacts sensitive values before trace data is exported.

    Note:

    Enable masking when prompts, model responses, system messages, tool arguments, or tool results can contain sensitive data. When masking is enabled, Agent Factory redacts LLM inputs and outputs, tool inputs and outputs, and OpenInference attributes such as input.value, output.value, llm.prompts, llm.completions, and tool.parameters.

    Agent Factory keeps non-sensitive operational metadata visible so traces remain useful. For example, traces can still include token counts, model identifiers, latency, trace IDs, span IDs, and session IDs.

  11. Click Test connection.

    Agent Factory validates network reachability, the endpoint path, and authentication.

  12. Review the connection test result.

    If the connection test fails, use the returned message to correct the configuration.

    • Connection Failed: 401 Unauthorized. Please check your API key.: Check whether authentication is enabled and whether the API key is correct.
    • Connection Refused: Please ensure the tracing server is running and accessible at the specified endpoint.: Confirm that the tracing server is running and that Agent Factory can reach the endpoint URL.
    • Network or endpoint errors: Check the host name, port, /v1/traces path, firewall rules, and container networking.
  13. If the connection test succeeds, click Add Tracing Tool.

    Add tracing tool configuration

After the configuration is saved, Agent Factory shows it in the Observability table with the configuration name, provider name, project name, creation date, and actions to view, edit, or delete the configuration.

Observability configuration

View Captured Traces

After you save an observability configuration, Agent Factory starts exporting traces for subsequent flow and agent executions.

  1. Open or create a flow in Agent builder.

  2. Run the flow and send a message in the chat.

  3. In the tracing server, open the project that you configured in Agent Factory.

  4. Select the trace for the flow run.

  5. The trace tree shows the overall flow run, each flow step, tool executions, and LLM calls. Use the trace tree to inspect the execution order, latency, span attributes, and status for each flow step.

The following examples show how traces are captured for common Agent Factory runs in Arize Phoenix.