> ## Documentation Index
> Fetch the complete documentation index at: https://arize-ax.mintlify.site/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Tracing

> Complete visibility into how your agents and models work

# What is Tracing?

Tracing captures the full journey of a request as it moves through parts of a system.&#x20;

A *trace* is made up of a series of *spans* — each span corresponds to an individual unit of work such as invoking a model, retrieving data, or running a function. Tracing shows how the request propagated, what components it touched, how long each part took, and what inputs and outputs were involved.&#x20;

<Frame>
  <img src="https://storage.googleapis.com/arize-phoenix-assets/assets/images/tracing_overview_new.gif" alt="Image" />
</Frame>

# Why is Tracing Important?

Tracing helps you spot where things take too long, where errors are happening, and which parts of the agent/application need improvement. By capturing detailed metadata such as latency, token counts, and cost, tracing helps you improve system efficiency.&#x20;

# Why Arize AX for Tracing?

* Arize created the industry leading [OpenInference Semantic Conventions](https://github.com/Arize-ai/openinference) that is widely adopted by model providers, frameworks, and even observability platforms. Traces work best in the platform in this format.&#x20;
* Native instrumentation for over [30+ model providers, frameworks, and gateways](/ax/integrations). Because we own the instrumentation, we can extend coverage, adapt quickly, and maintain compatibility across frameworks.&#x20;
* Scales to over terabytes of data and billions of spans
* Native cost tracking support and can be customized
* Agent Visualizations for aggregate analysis&#x20;

# Getting Started&#x20;

<Callout icon="sparkles" color="#10b981">
  **Using a coding agent?** Paste this into your agent to set up tracing automatically:

  ```
  Follow the instructions from https://arize.com/docs/PROMPT.md and ask me questions as needed.
  ```

  [Learn more about agent-assisted setup →](/ax/set-up-with-ai-assistants)
</Callout>

There are 3 approaches to getting traces in platform:&#x20;

1. [Agent-Assisted Setup](/ax/set-up-with-ai-assistants) (Recommended) - *Let your coding agent set up tracing automatically*
2. [Integrations](/ax/observe/tracing/setup/integrations) - *Use a supported integration* &#x20;
3. [Manual Instrumentation](/ax/observe/tracing/setup/manual-instrumentation) - *Fully customize your traces*

# How Does Tracing Work?

*Instrumentation* enables your application to emit trace data by automatically or manually wrapping function calls and capturing attributes like inputs, outputs and latency. An exporter transmits the captured spans  in the [OpenInference format](https://github.com/Arize-ai/openinference/tree/main) to Arize AX using the OpenTelemetry Protocol (OTLP) over gRPC. Once received, the Arize collector ingests and visualizes the spans in the Arize AX UI.

<Frame>
  <img src="https://storage.googleapis.com/arize-phoenix-assets/assets/images/concepts-how-to-tracing.avif" alt="Image" />
</Frame>

# Supported Integrations

Using an integration is the easiest, fastest way to get tracing up and running in Arize AX. You get attributes set automatically (following the [OpenInference conventions](https://github.com/Arize-ai/openinference/tree/main)).

We continuously add to our list of supported integrations. Visit the full list [here](https://arize.com/docs/ax/integrations). If you don't see your framework, provider or tool yet, you can file a request for us to add it.

## LLM Providers

<CardGroup cols={3}>
  <Card title="OpenAI" href="/ax/integrations/llm-providers/openai/openai-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/eae48fc7-image.avif" />

  <Card title="Anthropic" href="/ax/integrations/llm-providers/anthropic/anthropic-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/e507a114-image.avif" />

  <Card title="Google GenAI (Gemini)" href="/ax/integrations/llm-providers/google-gen-ai/google-genai-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/f3b663de-image.jpeg" />

  <Card title="LiteLLM" href="/ax/integrations/llm-providers/litellm/litellm-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/5af8e032-image.avif" />

  <Card title="Llama" href="/ax/integrations/llm-providers/llama/ollama-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/8a75155e-image.jpeg" />

  <Card title="MistralAI" href="/ax/integrations/llm-providers/mistralai/mistralai-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/2ee60cd9-image.avif" />

  <Card title="Amazon Bedrock" href="/ax/integrations/llm-providers/amazon-bedrock/amazon-bedrock-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/a8246905-image.avif" />

  <Card title="Groq" href="/ax/integrations/llm-providers/groq/groq-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/007f0e6a-image.avif" />

  <Card title="VertexAI" href="/ax/integrations/llm-providers/vertexai/vertexai-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/69173894-image.avif" />

  <Card title="OpenRouter" href="/ax/integrations/llm-providers/openrouter/openrouter-tracing" img="https://storage.googleapis.com/arize-assets/doc-images/gitbook-mintlify-migration/arize-assets/gitbook_openrouter.png" />
</CardGroup>

## Agent Frameworks

<CardGroup cols={3}>
  <Card title="Agno" href="/ax/integrations/python-agent-frameworks/agno/agno-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/0dad4524-image.jpeg" />

  <Card title="AutoGen" href="/ax/integrations/python-agent-frameworks/autogen/autogen-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/d32abac7-image.avif" />

  <Card title="BeeAI (Python)" href="/ax/integrations/python-agent-frameworks/beeai/beeai-tracing-python" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/75908bc4-image.avif" />

  <Card title="BeeAI (TypeScript)" href="/ax/integrations/ts-js-agent-frameworks/beeai/beeai-tracing-js" img="https://storage.googleapis.com/arize-assets/doc-images/gitbook-mintlify-migration/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces/znHfr50png7aRf2FZXNT/uploads/git-blob-165f79e32b647e7686d869d78c8d83bc8517b229/beeAI.avif" />

  <Card title="CrewAI" href="/ax/integrations/python-agent-frameworks/crewai/crewai-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/000a0e60-image.avif" />

  <Card title="Dify" href="/ax/integrations/platforms/dify/dify-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/afa2d7a3-image.jpeg" />

  <Card title="DSPy" href="/ax/integrations/python-agent-frameworks/dspy/dspy-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/434415f5-image.avif" />

  <Card title="Flowise" href="/ax/integrations/platforms/flowise/flowise-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/7354bd64-image.jpeg" />

  <Card title="Guardrails AI" href="/ax/integrations/python-agent-frameworks/guardrails-ai/guardrails-ai-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/c39b5fa4-image.avif" />

  <Card title="Haystack" href="/ax/integrations/python-agent-frameworks/haystack/haystack-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/d059a1f1-image.avif" />

  <Card title="Hugging Face smolagents" href="/ax/integrations/python-agent-frameworks/hugging-face-smolagents/smolagents-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/ebdcb607-image.avif" />

  <Card title="Instructor" href="/ax/integrations/python-agent-frameworks/instructor/instructor-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/f9c0686c-image.jpeg" />

  <Card title="LlamaIndex" href="/ax/integrations/python-agent-frameworks/llamaindex/llamaindex-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/f367d753-image.avif" />

  <Card title="LangChain" href="/ax/integrations/python-agent-frameworks/langchain/langchain-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/01ab0d97-image.avif" />

  <Card title="LangGraph" href="/ax/integrations/python-agent-frameworks/langgraph/langgraph-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/01ab0d97-image.avif" />

  <Card title="LangFlow" href="/ax/integrations/platforms/langflow/langflow-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/e2b6d2cf-image.avif" />

  <Card title="Mastra" href="/ax/integrations/ts-js-agent-frameworks/mastra/mastra-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/43c919a1-image.jpeg" />

  <Card title="Model Context Protocol" href="/ax/integrations/python-agent-frameworks/model-context-protocol/mcp-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/e507a114-image.avif" />

  <Card title="Portkey" href="/ax/integrations/python-agent-frameworks/portkey/portkey-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/007b2286-image.jpeg" />

  <Card title="Prompt Flow" href="/ax/integrations/platforms/prompt-flow/prompt-flow-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/78bea69c-image.avif" />

  <Card title="Pydantic AI" href="/ax/integrations/python-agent-frameworks/pydantic/pydantic-ai-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/6a5df63f-image.jpeg" />

  <Card title="Together AI" href="/ax/integrations/python-agent-frameworks/together-ai/together-ai-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/44401856-image.jpeg" />

  <Card title="Vercel AI SDK" href="/ax/integrations/ts-js-agent-frameworks/vercel/vercel-ai-sdk-tracing" img="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/a05fd5cb-image.avif" />
</CardGroup>

## Java

<CardGroup cols={3}>
  <Card title="LangChain4j" href="/ax/integrations/java/langchain4j/langchain4j-tracing" img="https://storage.googleapis.com/arize-assets/doc-images/langchain.png" />

  <Card title="Spring AI" href="/ax/integrations/java/spring-ai/spring-ai-tracing" img="https://storage.googleapis.com/arize-assets/doc-images/springai.png" />

  <Card title="Arconia" href="/ax/integrations/java/arconia/arconia-tracing" img="https://storage.googleapis.com/arize-assets/doc-images/arconia.png" />
</CardGroup>
