# Registry Functions

## setupAITracing

```typescript
function setupAITracing(config: ObservabilityRegistryConfig): void;
```

Initializes AI tracing from configuration. Called automatically by Mastra constructor.

## registerAITracing

```typescript
function registerAITracing(
  name: string,
  instance: AITracing,
  isDefault?: boolean,
): void;
```

Registers a tracing config in the global registry.

## getAITracing

```typescript
function getAITracing(name: string): AITracing | undefined;
```

Retrieves a tracing config by name.

## getDefaultAITracing

```typescript
function getDefaultAITracing(): AITracing | undefined;
```

Returns the default tracing config.

## getSelectedAITracing

```typescript
function getSelectedAITracing(
  options: ConfigSelectorOptions,
): AITracing | undefined;
```

Returns the tracing config selected by the config selector or default.

## setSelector

```typescript
function setSelector(selector: ConfigSelector): void;
```

Sets the global config selector function.

## unregisterAITracing

```typescript
function unregisterAITracing(name: string): boolean;
```

Removes a tracing config from the registry.

## shutdownAITracingRegistry

```typescript
async function shutdownAITracingRegistry(): Promise<void>;
```

Shuts down all tracing configs and clears the registry.

## clearAITracingRegistry

```typescript
function clearAITracingRegistry(): void;
```

Clears all configs without shutdown.

## getAllAITracing

```typescript
function getAllAITracing(): ReadonlyMap<string, AITracing>;
```

Returns all registered tracing configs.

## hasAITracing

```typescript
function hasAITracing(name: string): boolean;
```

Checks if a tracing instance exists and is enabled.

## See Also

### Documentation

- [AI Tracing Overview](/docs/observability/ai-tracing/overview) - Concepts and usage guide
- [Sampling Strategies](/docs/observability/ai-tracing/overview#sampling-strategies) - Sampling configuration details
- [Multi-Config Setup](/docs/observability/ai-tracing/overview#multi-config-setup) - Using multiple configurations

### Reference

- [AITracing Classes](/reference/observability/ai-tracing/) - Core tracing classes
- [Interfaces](/reference/observability/ai-tracing/interfaces) - Type definitions
- [Span Reference](/reference/observability/ai-tracing/span) - Span lifecycle

### Examples

- [Basic AI Tracing](/examples/observability/basic-ai-tracing) - Getting started

### Exporters

- [DefaultExporter](/reference/observability/ai-tracing/exporters/default-exporter) - Storage configuration
- [CloudExporter](/reference/observability/ai-tracing/exporters/cloud-exporter) - Cloud setup
- [Braintrust](/reference/observability/ai-tracing/exporters/braintrust) - Braintrust integration
- [Langfuse](/reference/observability/ai-tracing/exporters/langfuse) - Langfuse integration
- [LangSmith](/reference/observability/ai-tracing/exporters/langsmith) - LangSmith integration


---
title: "Reference: ArizeExporter | Observability"
description: Arize exporter for AI tracing using OpenInference
---

import PropertiesTable from "@site/src/components/PropertiesTable";