Skip to main content
Untrace Rust SDK Light

Overview

The Untrace Rust SDK provides zero-latency LLM observability with automatic instrumentation for all major LLM providers. Built on OpenTelemetry standards, it captures comprehensive trace data and routes it to your chosen observability platforms.

Quick Start

Start tracing LLM calls in minutes

Framework Support

Axum, Actix, Tokio, and high-performance apps

Performance

Zero-cost abstractions and async support

Examples

Real-world examples and best practices

Installation

Add this to your Cargo.toml:

Quick Start

Basic Setup

LLM Span Creation

Configuration

Basic Configuration

Environment Variables

You can also configure the SDK using environment variables:
Then initialize with:

Advanced Configuration

Framework Integration

Axum Framework

Actix Web Framework

Warp Framework

Advanced Usage

Workflow Tracking

Metrics Collection

Custom Attributes

Error Handling

Examples

OpenAI Integration

Batch Processing

Async Stream Processing

Performance

Zero-Cost Abstractions

The Rust SDK is designed with zero-cost abstractions in mind:

Async Performance

Memory Management

Best Practices

1. Use RAII for Automatic Cleanup

2. Handle Errors Properly

3. Use Semantic Attributes

4. Initialize Early

Troubleshooting

Common Issues

API Reference

Core Types

Trait Implementations

Support

Next Steps

Dashboard Guide

Learn to use the Untrace dashboard

Configuration

Configure your observability setup

Examples

Browse Rust example implementations

API Reference

Complete API documentation